Forums / General / Spell check suggestion

Spell check suggestion

Author Message

Lo' F.

Saturday 04 December 2010 8:22:49 am

Hello there.

I have one question: when launching a search through eZ Find, if the entered word isn't recognized, the content/search page displays "Spell check suggestion: did you mean... ?".

Is there a way I can add words, like important people's names, so that it doesn't suggest an alternative?

Thanks a lot!

loredanaebook.it

Ivo Lukac

Monday 06 December 2010 3:18:56 am

Hi,

There is a spellings.txt file in ezfind/java/solr/conf folder where you can add your words. You will need to restart the solr service after you change the file.

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Gaetano Giunta

Monday 06 December 2010 7:17:26 am

To add more detail to Ivo's response: by default Solr uses the words in the index for spell check suggestions - spellings.txt is not active.

If you activate it, Solr will only use the words found in that file as a dictionary to find suggestions. You need to edit solrconfig.xml to activate that file (and restart solr after making your changes)

Principal Consultant International Business
Member of the Community Project Board

Ivo Lukac

Monday 06 December 2010 10:29:36 am

"

To add more detail to Ivo's response: by default Solr uses the words in the index for spell check suggestions - spellings.txt is not active.

If you activate it, Solr will only use the words found in that file as a dictionary to find suggestions. You need to edit solrconfig.xml to activate that file (and restart solr after making your changes)

"

Thanks Gaetano,

I used this feature a year ago and it +seems that my detail memory does not last that long :)

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Lo' F.

Monday 06 December 2010 12:12:44 pm

Thank you guys!

Couple of questions..

- Gaetano, when you say Solr uses the words in the index... which index?! In the .ini file it says Spellcheck DefaultDictionary "default"..

- And.. how to restart Solr?

loredanaebook.it

Ivo Lukac

Tuesday 07 December 2010 12:21:32 am

"

Thank you guys!

Couple of questions..

- Gaetano, when you say Solr uses the words in the index... which index?! In the .ini file it says Spellcheck DefaultDictionary "default"..

- And.. how to restart Solr?

"

Solr stores all data for searching in its own special file format - this is called index. Default dictionary should be based on all words in the index.

Solr restart depends on how you run it: with tomcat or jetty?

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Lo' F.

Tuesday 07 December 2010 8:15:55 am

I guess it's time to look deeper into this powerful search extension...

That is already running and functional on the final server, where all I need to do is just handle some spellcheck flaws..

By the way where can I find this special file format called index?! :)

...

In my testing environment, I have an eZ Find extension listed among the available extensions, which I guess came included during installation, based on ezwebin (?!).

I tried to activate it: the admin displays a nice tab for ez Find, but that's all, since then the search functionality is not working anymore.

Consider that I need to start from scratch with eZ Find...

loredanaebook.it

Ivo Lukac

Tuesday 07 December 2010 9:10:58 am

"

I guess it's time to look deeper into this powerful search extension...

That is already running and functional on the final server, where all I need to do is just handle some spellcheck flaws..

By the way where can I find this special file format called index?! :)

...

In my testing environment, I have an eZ Find extension listed among the available extensions, which I guess came included during installation, based on ezwebin (?!).

I tried to activate it: the admin displays a nice tab for ez Find, but that's all, since then the search functionality is not working anymore.

Consider that I need to start from scratch with eZ Find...

"

You don't want to mess with index directly, it is a folder with several binary files. Configuration files are in ezfind/java/solr/conf folder.

Here is a good place to start: http://doc.ez.no/Extensions/eZ-Find/2.3/Installation/Solr-backend

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Lo' F.

Tuesday 07 December 2010 9:39:08 am

"

You don't want to mess with index directly, it is a folder with several binary files. Configuration files are in ezfind/java/solr/conf folder.

Here is a good place to start: http://doc.ez.no/Extensions/eZ-Find/2.3/Installation/Solr-backend

"

Righty-ho, thanks a lot!

loredanaebook.it

Lo' F.

Wednesday 08 December 2010 12:25:33 pm

I forgot to ask another thing regarding this Spell check suggestion..

If I launch a search while I am browsing the Italian sitaccess, for instance, on a misspelled word such as "sistem", it suggests "sistema", which is correct because that's the Italian word and surely enough it's what I am expecting!

But if I launch the search while I am browsing the English site, or the French site, instead of suggesting "system" or "système" it still suggests "sistema"..

What do I need to do in order to get the right suggestion according to the current language?

loredanaebook.it

English Guru

Thursday 09 December 2010 12:28:43 am

You may want to try Spell Checker Tool where it checks not just spelling but also a language translator, checks grammar, punctuation, writing style, and a lot more! www.spellcheckertool.com FREE DOWNLOAD! ^_^