On Mon, May 13, 2013 at 12:25 PM, Stadin, Benjamin <
benjamin.sta...@heidelberg-mobil.com> wrote:

> Hi all,
>
> I need to implement a ranking that considers the search result's token
> distance (so either the actual character offset, or token offset from the
> beginning of the text). Is it possible to get/query this distance from the
> FTS4 index (either directly or via ft4saux), or would I have to parse the
> content of each text column?
>

The offsets() function provides this information.
http://www.sqlite.org/fts3.html#offsets

-- 
D. Richard Hipp
d...@sqlite.org
_______________________________________________
sqlite-users mailing list
sqlite-users@sqlite.org
http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

Reply via email to