0

I need help to get some information on Solr-Search. Below is the problem statement:

Problem Statement

  1. Need to implement spell check functionality (same as google did you mean).
  2. Stemming of search words. e.g. dose, dossier, dosing. If some one search for dose result will be also for dossier and dosing.

Requirement

Need to implement both of the functionality without using any manual text file like spellcheck.txt for spell check and synonym.txt for stemming. I want it to be configured through search engine and want taht it use some general English dictionary.

My Understanding

  1. Solr does not provide any dictionary . Spell check can be implemented by providing a text file for spell check..

  2. For stemming also we need to upload txt file.

I need to mention this in schema.xml present in solr. These text files need to be maintained manually.

I need to confirm that is there any other way to configure a general dictionary with Solr or any other way we can achieve these requirements through Solr configuration changes without using text files.

Lennart Regebro
  • 167,292
  • 41
  • 224
  • 251
Abhishek
  • 11
  • 2

1 Answers1

1
  1. You can use the DirectSolrSpellcheck so no dictionaries are needed.

  2. You don't need text files for stemming, just an analyzer.

Okke Klein
  • 2,549
  • 17
  • 9
  • We are using solr 1.1 and spell check analyser is present in updated solr version is there any other way to handel this. – Abhishek Mar 20 '12 at 12:04
  • Is it possible for you to provide me a sample code for DirectSolrSpellcheck as I was unable to find any implementation of this. – Abhishek Mar 20 '12 at 12:05
  • It's part of Solr 4.0. Else might wanna check IndexBasedSpellChecker – Okke Klein Mar 20 '12 at 12:11
  • Thanks O. Klein for the information ......this means I have to look out for something else we cant upgrade solr to 4.0.......:) – Abhishek Mar 22 '12 at 05:13
  • Can FileBased and Indexed based search used simultaniouslly... in Solr 1.4 – Abhishek Mar 27 '12 at 07:31