Full-Text Search (Fragment, score, position)


I want to know if Couchbase lite can return the fragment, score and position when using full-text search (without Couchbase server)?

best regards,

There is a FullTextResult.rank function that will return the score.

The underlying engine (LiteCore) makes the fragment text & position available, but AFAICT they are not exposed in the Couchbase Lite API. (@pasin?)

thanks, it works fine :slight_smile:

Currently we CBL doesn’t have the API to return fragment text and position. I have created a ticket to consider adding the API in the future.