15,904,823 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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
Gr8AmitTiwari
16-Feb-16 8:14am
View
Hi Garth,
Really Sorry for late response !!!
I have tried the same concept as you have explained above. Thanks for that.
Make 2 functions, 1st is returned Number and 2nd is returned String of that number.
For using 1st function I have done this :-
Suppose I want to search book name - "Line 135".
Then First it will pick 135, convert it into string using function and then i have replaced that section with old search string.
So my first wish is complete.
Now comes to the 2nd point :-
Suppose I want to search book name - "Line One Hundred Thirty Five".
So how can i get One Hundred Thirty Five in above string? and then convert it into 135.
Thanks
Show More