Click here to Skip to main content
15,904,823 members

Comments by Gr8AmitTiwari (Top 6 by date)

Gr8AmitTiwari 29-Mar-16 7:42am View    
Hi,

With the help of google, I have started my sample application, but some confusion on that.
Now Can you please resolve this?

The code section given below.

<pre lang="C#">SpellChecker spellchecker = new SpellChecker(spellIndexDirectory);
// To index a field of a user index:
spellchecker.indexDictionary(new LuceneDictionary(my_lucene_reader, a_field));
// To index a file containing words:
spellchecker.indexDictionary(new PlainTextDictionary(new File("myfile.txt")));
String[] suggestions = spellchecker.suggestSimilar("misspelt", 5);</pre>


1. What is myfile.txt. Can we create it or what?

2. String[] suggestions = spellchecker.suggestSimilar("misspelt", 5)
In the above line, spellchecker.suggestSimilar has 2 parameter. 1st is string word and 2nd is int num_sug. What is this num_sug in which pass 5.

Please help.

Thanks in advance.
Gr8AmitTiwari 28-Mar-16 6:44am View    
Hi,

This solution is not helpful.

I m getting stuck.

Please help me. I m new in Lucene.

Thanks
Gr8AmitTiwari 16-Mar-16 2:12am View    
Hi All,

I am stuck one more thing.
The above problem has been fixed and working fine now.
But one more thing arises that suppose a user enter misspell the word what he search, then it will show the result also.

Ex- Suppose user enter Figty Shades of Grey. Figty spell is wrong. The correct is Fifty, then it will also show the same result.

So how I can identify using Lucene .Net search Engine?

Please help Sascha and Garth.


Thanks in Advance to both of you.

Amit Tiwari
Gr8AmitTiwari 17-Feb-16 6:34am View    
Hi Garth & Sascha,

Successfully completed.

Now it is working fine.

Thanks a lot to both of you.
Gr8AmitTiwari 16-Feb-16 8:19am View    
Hi Sascha,

Thanks for your response.

Actually I am very new in Lucene Search. So not much more idea about the inbuilt dot net classes. I have tried above concepts as Garth describes above.

If getting stuck then comes to your point.

Thanks