You may need to use ngrams.
http://lucene.apache.org/java/3_0_3/api/all/org/apache/lucene/analysis/ngram/EdgeNGramTokenFilter.html
Another option would be doing wildcard query without enabling leading
wildcard search. search for cr* and not *cr* as the auto suggest
feature should give suggestion f
Hi there,
I am using Lucene for an actually quite simple search. I am not indexing long
texts, but instead each document only has a couple of fields with texts from
one word to a very short sentence (no more than 6 words usually). Now I need to
find documents even with only two characters typed
Hi,
you can export index with jar itself
and do not provide absolute path relative to file system
instead create folder named index in your project space
then as below you can get index directory
directory=FSDirectory.open(new File("index"));
here path is relative to you workspace which will not
Hi,
I need to generate executable JAR.
In my code, it has some lines as following:
String path = "d:\\project\\";
File f = new File(path);
Directory dir = FSDirectory.open(f);
In the path, there is a wordnet index which is used to search by synonyms.
When I run the JAR, it needs local directory
i built one with text files on my system.but it was not as rich with
different field types so was looking for one like wikipedia or so
yeah i agree analyzers will be problem
i got one from mannings site with source code of lucene in action.
lets see if that works out for me
thanks
narayan
On Sun,
Why don't you generate your own index off some sample docs or dataset. Would
give you a lot more flexibility to play around as otherwise even if you get
an index, you wouldn't have info in the analyzer used etc.. while indexing.
--
Anshum Gupta
http://ai-cafe.blogspot.com
On Sun, Feb 13, 2011 at
Hi All,
i am trying to get a sample index to which i can perform queries.
can anyone point to a location where i can download such a index.
for example index of wikipedia docs or any other such large repository
i am looking for index of 100 MB or so
thanks
Narayan