Hi Koji,

   I'm using a copy field to preserve the original term with stopword. It's
mapped to  titleExact.

  <field name="title" type="adsktext" indexed="true" stored="true"
multiValued="true"/>
<field name="titleExact" type="textExact" indexed="true" stored="true"  />

textExact definition:
<fieldType name="textExact" class="solr.TextField"
positionIncrementGap="100" >
        <analyzer type="index">
                        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                        <filter class="solr.LimitTokenCountFilterFactory" 
maxTokenCount="20"/>
                        <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
        <analyzer type="query">
                        <tokenizer class="solr.WhitespaceTokenizerFactory"/>
                        <filter class="solr.LimitTokenCountFilterFactory" 
maxTokenCount="20"/>
                        <filter class="solr.LowerCaseFilterFactory"/>
        </analyzer>
</fieldType>

I'm using minimum analyzers to keep the original query in titleExact which
is exactly what it is doing. Not sure how adding a shingle filter is going
to benefit here. 

adsktext does all the heavy lifting of removing the stopwors and applying
stemmers.



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Problem-trying-to-boost-phrase-containing-stop-word-tp4346860p4346915.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to