Hi,
 I am doing exact word search in Solr 1.3 and I am not getting the expected 
results.
I am giving you the sample XML file along with the mail from where search 
results are fetched.
The following steps were followed to achieve exact word search result in Solr.
 
1)      Schema.xml is configured for title, url and description
<field name="url" type="string" indexed="true" stored="true" required="true"/>
<field name="title" type="text" indexed="true" stored="true" required="true" /> 
<field name="description" type="text" indexed="true" stored="true" 
required="true"/>
 
Commented below lines
      <!--<filter class="solr.EnglishPorterFilterFactory" 
protected="protwords.txt"/>-->
<!--<filter class="solr.EnglishPorterFilterFactory" 
protected="protwords.txt"/>-->
2)     Started Solr server
3)  Indexed sample data with title, url & description 
5)      Assume I am giving (say channelone) as my input search string for exact 
word search in Solr admin page.
 
I am getting the following output.It sould show output pertaining to channelone 
only.It should not display combination of words with “channelone”.I am not 
looking for case sensitive search here.
<  <doc>
  <field name="url">http://c2search1/contactus3.html</field> 
  <field name="title">c2Search1: Contactus3</field> 
  <field name="description">channelOne</field> 
  </doc>
- <doc>
  <field name="url">http://c2search1/contactus4.html</field> 
  <field name="title">c2Search1: Contactus4</field> 
  <field name="description">Channelone</field> 
  </doc>
- <doc>
  <field name="url">http://c2search1/contactus5.html</field> 
  <field name="title">c2Search1: Contactus5</field> 
  <field name="description">channel...@$</field> 
  </doc>
- <doc>
  <field name="url">http://c2search1/contactus6.html</field> 
  <field name="title">c2Search1: Contactus6</field> 
  <field name="description">channelon...@$</field> 
  </doc>
- <doc>
  <field name="url">http://c2search1/contactus7.html</field> 
  <field name="title">c2Search1: Contactus7</field> 
  <field name="description">channelon...@$ab</field> 
 </doc>
 
 
Expected Result
<  <doc>
  <field name="url">http://c2search1/contactus3.html</field> 
  <field name="title">c2Search1: Contactus3</field> 
  <field name="description">channelOne</field> 
  </doc>
- <doc>
  <field name="url">http://c2search1/contactus4.html</field> 
  <field name="title">c2Search1: Contactus4</field> 
  <field name="description">Channelone</field> 
  </doc>
 
 
Please help me with the above scenario to achieve the desired output.
 
Regards
Bhaskar


      

Reply via email to