RE: Protwords in solr spellchecker

2015-07-10 Thread Dyer, James
tent Group -Original Message- From: Alessandro Benedetti [mailto:benedetti.ale...@gmail.com] Sent: Friday, July 10, 2015 7:00 AM To: solr-user@lucene.apache.org Subject: Re: Protwords in solr spellchecker So let's try to analyse the situation from the spellchecking point of view . First o

Re: Protwords in solr spellchecker

2015-07-10 Thread Alessandro Benedetti
So let's try to analyse the situation from the spellchecking point of view . First of all we follow David suggestions and we add in the QueryTime analysis, the StopWordsFilter, with our configured "bad" words. *Starting scenario* - we have the protected words in our index, we still want them to be

Re: Protwords in solr spellchecker

2015-07-10 Thread davidphilip cherian
Hi Kamal, Not necessarily. You can have different filters applied at index time and query time. (note that the order in which filters are defined matters). You could just add the stop filter at query time. Have your own custom data type defined (similar to 'text_en' that will be in schem.xml) and

Re: Protwords in solr spellchecker

2015-07-10 Thread Kamal Kishore Aggarwal
Hi David, This one is a good suggestion. But, if add these *adult* keywords in the stopwords.txt file, it will be requiring the re-indexing of these keywords related data. How can I see the change instantly. Is there any other great suggestion that you can suggest me. On Thu, Jul 9, 2015 at 1

Re: Protwords in solr spellchecker

2015-07-08 Thread davidphilip cherian
The best bet is to use solr.StopFilterFactory. Have all such words added to stopwords.txt and add this filter to your analyzer. Reference links https://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.StopFilterFactory https://cwiki.apache.org/confluence/display/solr/Filter+Descriptions#F

Protwords in solr spellchecker

2015-07-08 Thread Kamal Kishore Aggarwal
Hi Team, I am currently working with Java-1.7, Solr-4.8.1 with tomcat 7. Is there any feature by which I can refrain the following words to appear in spell suggestion. For example: Somebody searches for sexe, I does not want to show him sex as the spell suggestion via solr. How can I stop these t