Hi,

I have a problem with solr search. If I search after "vitamin" I receive : 
1 - arrca MULTIVITAMIN FRUCHTSAFTBÄRCHEN
2 - VITAMIN E-KAPSELN NAT. 400

How can I configure the fieldtype or the query to get the documents by
position of the word in documents found?("VITAMIN E-KAPSELN NAT. 400" before
"arrca MULTIVITAMIN FRUCHTSAFTBÄRCHEN")

I am using the following fieldtype:
<fieldType name="normal_text" class="solr.TextField"
positionIncrementGap="100" omitNorms="true">
                <analyzer type="index">
                        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                        <filter class="solr.StandardFilterFactory" />
                        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true"/>
                        <filter class="solr.WordDelimiterFilterFactory" 
generateWordParts="1"
generateNumberParts="1" catenateWords="1" catenateNumbers="1"
catenateAll="0" splitOnCaseChange="1"/>
                        <filter class="solr.LowerCaseFilterFactory"/>
                        <filter class="RemoveDuplicatesTokenFilterFactory"/>
                </analyzer>
                
                <analyzer type="query">
                        <tokenizer class="solr.WhitespaceTokenizerFactory" />
                        <filter class="solr.StandardFilterFactory" />
                        <filter class="solr.StopFilterFactory" ignoreCase="true"
words="stopwords.txt" enablePositionIncrements="true"/>
                        <filter class="solr.WordDelimiterFilterFactory" 
generateWordParts="1"
generateNumberParts="1" catenateWords="1" catenateNumbers="1"
catenateAll="0" splitOnCaseChange="1"/>
                        <filter class="solr.LowerCaseFilterFactory"/>
                        <filter class="solr.PositionFilterFactory" />
                </analyzer>
        </fieldType>

--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-order-results-by-word-position-tp3319445p3319445.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to