Re: Ranking based on term position

2015-07-09 Thread JACK
Hi Li Li, I am experiencing the same problem. can you Explain little detailed? Where do i change these methods? I am using Solr 5.0.0, And How do i query this? Is there any change while query? -- View this message in context: http://lucene.472066.n3.nabble.com/Ranking-based-on-term-position

Re: N-gram ranking based on term position

2012-09-13 Thread Chris Hostetter
: Since Edge N-gram tokens are a subset of N-gram tokens, I was wondering if : I could be a bit more space efficient. the use of edgengrams is really a question of your goal and wether having terms for those overlaping ngram tokens is what you want. If you just want to match the existing terms

Re: N-gram ranking based on term position

2012-09-07 Thread Kiran Jayakumar
Since Edge N-gram tokens are a subset of N-gram tokens, I was wondering if I could be a bit more space efficient. On Fri, Sep 7, 2012 at 3:07 PM, Amit Nithian wrote: > I think your thought about using the edge ngram as a field and > boosting that field in the qf/pf sections of the dismax handler

Re: N-gram ranking based on term position

2012-09-07 Thread Amit Nithian
I think your thought about using the edge ngram as a field and boosting that field in the qf/pf sections of the dismax handler sounds reasonable. Why do you have qualms about it? On Fri, Sep 7, 2012 at 12:28 PM, Kiran Jayakumar wrote: > Hi, > > Is it possible to score documents with a match "earl

Re: Ranking based on term position

2010-07-20 Thread Chris Hostetter
Use SpanFirstQuery : I need to make sure that documents with the search term occurring : towards the beginning of the document are ranked higher. : : For example, : : Search term : ox : Doc 1: box fox ox : Doc 2: ox box fox : : Result: Doc2 will be ranked higher than Doc1. : : The solution I

Re: Ranking based on term position

2010-07-19 Thread Li Li
I have considerd this problem and tried to solve it using 2 methods By these methods, we also can boost a doc by the relative positions of query terms. 1: add term Position when indexing modify TermScorer.score public float score() { assert doc != -1; int f = freqs[pointer]; floa

Ranking based on term position

2010-07-19 Thread Papiya Misra
I need to make sure that documents with the search term occurring towards the beginning of the document are ranked higher. For example, Search term : ox Doc 1: box fox ox Doc 2: ox box fox Result: Doc2 will be ranked higher than Doc1. The solution I can think of is sorting by term position (af