Help with Solr File Based spell check

2012-06-20 Thread Sanjay Dua - Network
Hi,

We are trying to implement file based search in our application using Solr 1.4. 
This is the code we have written

- 

- 

  default
  solr.FileBasedSpellChecker
  /usr/home/lilly/sixfeetup/projects/alm-buildout/etc/solr/spelling.txt
  ./filespellchecker
  0.7
  
  text
  


We are facing a issue and need your help on the same.

When the user searches for a word "medicine", which is a correct word and is 
present in the dictionary. We still get a suggestion "medicines" from 
dictionary.

We only want suggestion if the word is incorrectly spelled or is not included 
in the dictionary.

Can you please provide some suggestions.

Regards,
Sanjay Dua


Re: Solr -File Based Spell Check and Read .cfs file generated

2010-12-06 Thread rajini maski
Anyone know abt it?
 how to extract the dictionary generated by default.?  How do i read this
 .cfs files generated in index folder..


Awaiting reply


On Mon, Dec 6, 2010 at 7:54 PM, rajini maski  wrote:

> Yeah..  I wanna use this Spell-check only.. I want to create myself the
> dictionary.. And give it as input to solr.. Because my indexes also have
> mis-spelled content and so I want solr to refer this file and not
> autogenrated. How do i get this done?
>
> I will try the spell check as suggested by  michael...
>
> One more main thing I wanted to know is,  how to extract the dictionary
> generated by default.?  How do i read this  .cfs files generated in index
> folder..
>
> Please reply if you know anything related to this..
>
>
> Awaiting reply
>
>
>
>
> On Mon, Dec 6, 2010 at 7:33 PM, Erick Erickson wrote:
>
>> Are you sure you want spellcheck/autosuggest?
>>
>> Because what you're talking about almost sounds like
>> synonyms.
>>
>> Best
>> Erick
>>
>> On Mon, Dec 6, 2010 at 1:37 AM, rajini maski 
>> wrote:
>>
>> > How does the solr file based spell check work?
>> >
>> > How do we need to enter data in the spelling.txt...I am not clear about
>> its
>> > functionality..If anyone know..Please reply.
>> >
>> > I want to index a word = Wear
>> > But while searching I search as =Dress
>> > I want to get results for Wear.. How do i apply this functionality..
>> >
>> > Awaiting Reply
>> >
>>
>
>


Re: Solr -File Based Spell Check

2010-12-06 Thread rajini maski
Yeah..  I wanna use this Spell-check only.. I want to create myself the
dictionary.. And give it as input to solr.. Because my indexes also have
mis-spelled content and so I want solr to refer this file and not
autogenrated. How do i get this done?

I will try the spell check as suggested by  michael...

One more main thing I wanted to know is,  how to extract the dictionary
generated by default.?  How do i read this  .cfs files generated in index
folder..

Please reply if you know anything related to this..


Awaiting reply




On Mon, Dec 6, 2010 at 7:33 PM, Erick Erickson wrote:

> Are you sure you want spellcheck/autosuggest?
>
> Because what you're talking about almost sounds like
> synonyms.
>
> Best
> Erick
>
> On Mon, Dec 6, 2010 at 1:37 AM, rajini maski 
> wrote:
>
> > How does the solr file based spell check work?
> >
> > How do we need to enter data in the spelling.txt...I am not clear about
> its
> > functionality..If anyone know..Please reply.
> >
> > I want to index a word = Wear
> > But while searching I search as =Dress
> > I want to get results for Wear.. How do i apply this functionality..
> >
> > Awaiting Reply
> >
>


Re: Solr -File Based Spell Check

2010-12-06 Thread Erick Erickson
Are you sure you want spellcheck/autosuggest?

Because what you're talking about almost sounds like
synonyms.

Best
Erick

On Mon, Dec 6, 2010 at 1:37 AM, rajini maski  wrote:

> How does the solr file based spell check work?
>
> How do we need to enter data in the spelling.txt...I am not clear about its
> functionality..If anyone know..Please reply.
>
> I want to index a word = Wear
> But while searching I search as =Dress
> I want to get results for Wear.. How do i apply this functionality..
>
> Awaiting Reply
>


Re: Solr -File Based Spell Check

2010-12-06 Thread ramzesua

Hi. As I know, for file based spellcheck you need:
 - configure you spellcheck seach component in solrconfig.xml, for example:



  solr.FileBasedSpellChecker
  file
  spellings.txt
  UTF-8  
  ./spellcheckerFile  

  

 - then you must get or form spellings.txt, for example:
abaft 
abalone 
abalones 
abandon 
abandoned 
abandonedly 
... 
(each correct word in new line)

 - after that you must build you file to index:
http://wiki.apache.org/solr/SpellCheckComponent#spellcheck.build
for build try do to this:
http://solr:8983/solr/select?q=*:*&spellcheck=true&spellcheck.build=true

After that you can use spellcheck in your search, for example:
http://solr:8983/solr/select?q=bingo&spellcheck=true

Try this, if there is some errors, post here..
P.S. please, read http://wiki.apache.org/solr/SpellCheckComponent for more
information


-- 
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-File-Based-Spell-Check-tp2025671p2027258.html
Sent from the Solr - User mailing list archive at Nabble.com.


Solr -File Based Spell Check

2010-12-05 Thread rajini maski
How does the solr file based spell check work?

How do we need to enter data in the spelling.txt...I am not clear about its
functionality..If anyone know..Please reply.

I want to index a word = Wear
But while searching I search as =Dress
I want to get results for Wear.. How do i apply this functionality..

Awaiting Reply