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 perhaps use standard/whitespace tokenizer followed by stop filter at query time.
Tip: Use analysis tool that is available in solr admin page to further understand the analysis chain of data types. HTH On Fri, Jul 10, 2015 at 1:03 PM, Kamal Kishore Aggarwal < kkroyal....@gmail.com> wrote: > 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 12:09 PM, davidphilip cherian < > davidphilipcher...@gmail.com> wrote: > > > 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#FilterDescriptions-StopFilter > > > > HTH > > > > > > On Thu, Jul 9, 2015 at 11:50 AM, Kamal Kishore Aggarwal < > > kkroyal....@gmail.com> wrote: > > > > > 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 type of keywords to > > be > > > shown in suggestion. > > > > > > Any help is appreciated. > > > > > > > > > Regards > > > Kamal Kishore > > > Solr Beginner > > > > > >