Re: AW: Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Ahmet Arslan
Besides my "real index" (which is being analyzed through a ShingleAnalyzerWrapper) I implicitly/transparently build up a "search term index" which I populate with the terms (being shingles) of my "real index". The "search term index" is being used to provide search term suggestions when the u

AW: Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Clemens Wyss
ngliche Nachricht- > Von: Erick Erickson [mailto:erickerick...@gmail.com] > Gesendet: Mittwoch, 4. Mai 2011 14:35 > An: java-user@lucene.apache.org > Betreff: Re: Higher scoring if term is at the beginning of a field/document > > I didn't ask a clear question. *Why* do you

Re: Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Erick Erickson
Erickson [mailto:erickerick...@gmail.com] >> Gesendet: Mittwoch, 4. Mai 2011 13:50 >> An: java-user@lucene.apache.org >> Betreff: Re: Higher scoring if term is at the beginning of a field/document >> >> What is the problem you're trying to solve? I'm wondering

AW: Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Clemens Wyss
hould I analyze/search my documents to get this search/rating behavior? > -Ursprüngliche Nachricht- > Von: Erick Erickson [mailto:erickerick...@gmail.com] > Gesendet: Mittwoch, 4. Mai 2011 13:50 > An: java-user@lucene.apache.org > Betreff: Re: Higher scoring if term is at the beginn

Re: Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Erick Erickson
What is the problem you're trying to solve? I'm wondering if this is an XY problem. See: http://people.apache.org/~hossman/#xyproblem Best Erick On Wed, May 4, 2011 at 3:16 AM, Clemens Wyss wrote: > Given the I have 3 documents with exactly one field and the fields have the > following contents

Higher scoring if term is at the beginning of a field/document

2011-05-04 Thread Clemens Wyss
Given the I have 3 documents with exactly one field and the fields have the following contents: This is a moon The moon is bright moon If I analyze these documents they all hit on "moon". But how do I need to analyze/search my index in order to have the following "sort order": moon The moon is b