opened
igolkotek
username_0
Hi,
In postgres there is **<->**  (FOLLOWED BY) tsquery operator,  determining the distance between lexeme occurrences.
**pgroonga_score** just submits a ranking place. 
If we had a distance score like in postgres, it could be possible to make some weighted ranking just multiplying distance by weight.
Maybe there is some other pgroonga_score function to show the distance?

Thanks
Is available pgroonga_score as a distance, not a score?
issue
created
kou
username_1
Could you show your use case with sample data?
Why do you want to implement weight by distance?
comment
created
igolkotek
username_0
As a variant to make a weighted query of several jsonb fields, I'd make this:

```
SELECT id, pgroonga_score(tableoid, ctid) * 1.0 AS score  FROM jsonb_table WHERE title &@ 'word'
union
SELECT id, pgroonga_score(tableoid, ctid)* 0.5 AS score  FROM jsonb_table WHERE body &@ 'word'
order by score desc
```
but score as an ordinal ranking doesn't make sence
comment