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
: 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
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
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
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
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
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