Hi All
In my webapp i have people uploading their documents. My server is
windows/tomcat. I am thinking there will be a limit on the no of files in a
directory. Typically apllication users will load 3-5 page word docs.
1. How does one design the system such that there will not be any problem
g algorithm and store binary files with
lucene index?! I love the indexing algorithm, in that, you don't need
to manage the free space like that in a typical file system. Because
the merge process will take care of reclaiming the free space
automatically.
Should these two advices be good?
Jian
Hi All
can someone please help me on the error in my web application...
I am using tomcat , the path for index dir is obtained from jsp page using
application.getRealPath("/")+"download/compName"
I want to index when the file gets uploaded.
I am getting this error...
java.io.FileNotFoundEx
nstead of creating a new one?!
bib_lucene bib wrote:
>Hi All
>
>can someone please help me on the error in my web application...
>
>I am using tomcat , the path for index dir is obtained from jsp page using
>application.getRealPath("/")+"download/compName&
Hi All
I am indexing a document like this...
Document doc = new Document();
doc.add(Field.Text("contents", new FileReader(f)));
doc.add(Field.Text("filename",f.getCanonicalPath()));
Iterator it = fields.keySet().iterator();
String element = "";
while (it.hasNext()) {
elemen
Hi All
I have indexed and displayed highlighted search results. [following lucene in
action examples: Thanks authors]. Now I want to display the content of the file
with highlighted terms.
An idea I could comeup with is , clicking on search result I can open stream to
a document, search the
Hi All
I use the following code to display search results
LuceneHitHighlighter highlighter = new LuceneHitHighlighter(queryStr,
"snippet", "body");
for (int i = 0; i < hits.size(); i++) {
Document doc = (Document) hits.get(i);
highlighter
Hi Erik & All
My requirement is that I do a search, the results of the search are displayed.
I am displaying results by using getbestfragmets and highlighting searched text.
So basically the user can search and see what documents matched his search with
snippets of text shown in the result of
hlighter.getBestFragments(tokenStream,
text, _maxNumFragmentsRequired, "...");
// just store highlight text into document, nothing else
doc.add(new Field(_highlightFieldName, highlightText, true,
false, false));
}
}