Hi All,
           I am using Solr for some time and am having trouble with an auto 
complete feature that I have been trying to incorporate. I am indexing solr as 
a database column to solr field mapping. I have tried various configs that were 
mentioned in the solr user community suggestions and have tried a few option of 
my own too. Each of them seem to either not bring me the exact data I want or 
seems to get excess data.

I have tried.
text_ws,
text,
string
EdgeNGramTokenizerFactory
the subword example
textTight
and juggling arnd some of the filters and analysers togther.

Couldnt get dismax to work as somehow it wasnt able to connect my field defined 
in the schema to the qf param that I was passing in the request.

Text tight was the best results I had but the problem there was it was 
searching for whole words and not part words.
example

if my query String was field1:Word1 word2* I was getting back results but if my 
query string was field1: Word1 wor* I didnt get a result back.

I am little perplexed on how to implement this. I dont know what has to be done.

The schema


   <field name="institution.name" type="text_ws" indexed="true" stored="true" 
termVectors="true"/>
   <!--Sundar changed city to subword so that spaces are ignored-->

   <field name="instAlphaSort" type="alphaOnlySort" indexed="true" 
stored="false" multiValued="true"/>
   <!-- Tight text cos we want results to be much the same for this-->
   <field name="instText" type="text" indexed="true" stored="true"  
termVectors="true" multiValued="true"/>
   <field name="instString" type="autosuggest" indexed="true" stored="true"  
termVectors="true" multiValued="true"/>

   <field name="instSubword" type="subword" indexed="true" stored="true" 
multiValued="true"  termVectors="true"/>
   <field name="instTight" type="textTight" indexed="true" stored="true" 
multiValued="true"  termVectors="true"/>



I Index institution.name only, the rest are copy fields of the same.


Any help is appreciated.

Thanks
Sundar

_________________________________________________________________
Chose your Life Partner? Join MSN Matrimony
http://www.shaadi.com/msn/matrimony.php 

Reply via email to