Re: How to configure solr while having Apostrophes in fields

2016-07-28 Thread nitin.garg88
Thanks Eric , 

I have put analyser screen shot ,and i am not sure what is the problem in
WCF.
<http://lucene.472066.n3.nabble.com/file/n4289329/solr-analyser.png> 



--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-configure-solr-while-having-Apostrophes-in-fields-tp4289196p4289329.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: How to configure solr while having Apostrophes in fields

2016-07-27 Thread Erick Erickson
I'd _strongly_ recommend you become familiar with the
admin>>(your core)>>analysis page. It tells you exactly
what each filter does to your input and makes it much
simpler to answer questions like this. Hover over each
of the gray letter pairs (e.g. "SF" will be gray, hover over
it and you'll see that that's the "StopFilter").

In this case WordDelimiterFilterFactory is breaking
on on all non alpha-numerics. Do note that when
you remove it, all the _other_ punctuation that it
strips will suddenly be relevant, i.e.
"my dog has fleas.", the period after "fleas" will
be part of that token so you'll have to deal with that.

Best,
Erick

On Wed, Jul 27, 2016 at 4:58 AM, nitin.garg88 <nitin.gar...@gmail.com> wrote:
> When i search for "plato" it return me all records with
> "plato,platos,plato's"
> When i search for "platos" it return me all records with "platos,plato's"
> When i search for "plato's" it return me all records with "platos,plato's"
>
> Please suggest me how to configure schema.xml .Below is my "text" setting in
> schema.xml
>
>autoGeneratePhraseQueries="true">
>   
> 
>
>
> 
>
>
>  ignoreCase="true"
>
> synonyms="${home}/solr-configuration/bibliographic-protected-synonyms.txt"/>
>
>
>  generateWordParts="1" generateNumberParts="1"
> catenateWords="1" catenateNumbers="1" catenateAll="0"
> stemEnglishPossessive="0" splitOnCaseChange="0"
>
> protected="${home}/solr-configuration/bibliographic-protwords.txt"/>
>
>
>  enablePositionIncrements="true"
>
> words="${home}/solr-configuration/bibliographic-stopwords.txt"/>
>
>
>  ignoreCase="true"
>
> synonyms="${home}/solr-configuration/bibliographic-synonyms.txt"/>
>
>
>  mappingFile="${home}/sort.map"/>
>   
>   
> 
> 
>  ignoreCase="true"
>
> synonyms="${home}/solr-configuration/bibliographic-protected-synonyms.txt"/>
>  generateWordParts="1" generateNumberParts="1"
> catenateWords="0" catenateNumbers="0" catenateAll="0"
> stemEnglishPossessive="0" splitOnCaseChange="0"
>
> protected="${home}/solr-configuration/bibliographic-protwords.txt" />
>  enablePositionIncrements="true"
>
> words="${home}/solr-configuration/bibliographic-stopwords.txt"/>
>  ignoreCase="true"
>
> synonyms="${home}/solr-configuration/bibliographic-synonyms.txt"/>
>  mappingFile="${home}/sort.map"/>
>   
> 
>
> Thanks in advance !
>
>
>
>
> --
> View this message in context: 
> http://lucene.472066.n3.nabble.com/How-to-configure-solr-while-having-Apostrophes-in-fields-tp4289196.html
> Sent from the Solr - User mailing list archive at Nabble.com.


How to configure solr while having Apostrophes in fields

2016-07-27 Thread nitin.garg88
When i search for "plato" it return me all records with
"plato,platos,plato's"
When i search for "platos" it return me all records with "platos,plato's"
When i search for "plato's" it return me all records with "platos,plato's"

Please suggest me how to configure schema.xml .Below is my "text" setting in
schema.xml

  
  



















  
  







  


Thanks in advance !




--
View this message in context: 
http://lucene.472066.n3.nabble.com/How-to-configure-solr-while-having-Apostrophes-in-fields-tp4289196.html
Sent from the Solr - User mailing list archive at Nabble.com.