Hi,

My schema is like below

<fields>   
    <field name="ProductId" type="int" indexed="true" stored="true" />    
    <field name="ProductName" type="text_general" indexed="true" stored="true" 
required="true" />
    <field name="ProductDesription" type="string" indexed="true" stored="true" 
required="true" />
    <field name="Product Rating" type="int" indexed="true" stored="true" 
required="true" />
    <field name="Product Feedback" type="text_general" indexed="true" 
stored="true" required="true" />
</fields>

and my text_general field is like below

<fieldType name="text_general" class="solr.TextField" 
positionIncrementGap="100">
      <analyzer type="index">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt" enablePositionIncrements="true" />        
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
      <analyzer type="query">
        <tokenizer class="solr.StandardTokenizerFactory"/>
        <filter class="solr.StopFilterFactory" ignoreCase="true" 
words="stopwords.txt" enablePositionIncrements="true" />
        <filter class="solr.SynonymFilterFactory" synonyms="synonyms.txt" 
ignoreCase="true" expand="true"/>
        <filter class="solr.LowerCaseFilterFactory"/>
      </analyzer>
    </fieldType>

How can i search a Phrase("Good Microwave") over ProductDesription and Product 
Feedback field ?
Here some documents might contain only "Good" and some might contain only 
"Microwave".

How to get all  documents that contains "Good" or "Microwave" or "Good 
Microwave",if i will pass "Good Microwave" as q parameter  ?



Thanks in advance


                                          

Reply via email to