|
Sphinx
Community
Services
Misc
Subscribe in a reader
|
How to get term position
Common forum |
1 | 2 | 3 | 4 | 5 | ... |
273 | 274 | 275 | 276 | next »» | Create new thread
|
howa
Name: howa Posts: 18 |
2010-07-27 17:02:08
| reply!
I understand it is stored in the index, but is it possible to get it?
|
|
barryhunter
Name: Barry Hunter Posts: 1700 |
to: howa, 2010-07-27 17:19:44
| reply!
> I understand it is stored in the index, but is it possible to get it?
Not with any of the published APIs.
You could get an estimate
$cl->setRankingMode(SPH_RANK_WORDCOUNT);
$cl->setMatchMode(SPH_MATCH_EXTENDED2);
$cl->query("( @title[10] term ) | ( @title[8] term ) | ( @title[6] term ) | ( @title[4]
term ) | ( @title term )",$index);
The returned @weight would be an estimate of the position. A word nearer the beginning
would match more terms and so give a higher score.
|
|
howa
Name: howa Posts: 18 |
to: barryhunter, 2010-07-28 18:36:54
| reply!
>
> The returned @weight would be an estimate of the position. A word nearer the beginning
> would match more terms and so give a higher score.
>
>
Thanks...
Is it possible to post a feature request?
|
|
barryhunter
Name: Barry Hunter Posts: 1700 |
to: howa, 2010-07-28 18:49:22
| reply!
>
> Is it possible to post a feature request?
'Bug tracker' on the left - that accepts feature requests :)
|
|
howa
Name: howa Posts: 18 |
to: barryhunter, 2010-07-29 16:08:53
| reply!
> >
> > Is it possible to post a feature request?
>
> 'Bug tracker' on the left - that accepts feature requests :)
>
unfortunately, I was not able to create an account, since the verification email never
arrive to my inbox...
|
|
shodan
Name: Andrew Aksyonoff Posts: 4275 |
to: howa, 2010-08-05 13:26:55
| reply!
> Is it possible to post a feature request?
Sure, but beware that this would a pretty low priority one.
We had an email issue last week; if you still didn't receive the confirmation email, just
retry.
|
Common forum |
1 | 2 | 3 | 4 | 5 | ... |
273 | 274 | 275 | 276 | next »» | Create new thread
|