No.of Files in Directory

2005-06-29 Thread bib_lucene bib
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

Re: No.of Files in Directory

2005-06-29 Thread bib_lucene bib
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

FileNotFoundException segments

2005-07-07 Thread bib_lucene bib
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

Re: FileNotFoundException segments

2005-07-07 Thread bib_lucene bib
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&

Query -- how to write

2005-07-09 Thread bib_lucene bib
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

Displaying Document [Highlighting Terms]

2005-09-26 Thread bib_lucene bib
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

Document as parameter?

2005-11-10 Thread bib_lucene bib
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

Document as Paramter (Rephrased)

2005-11-11 Thread bib_lucene bib
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

Re: Document as Paramter (Rephrased)

2005-11-11 Thread bib_lucene bib
hlighter.getBestFragments(tokenStream, text, _maxNumFragmentsRequired, "..."); // just store highlight text into document, nothing else doc.add(new Field(_highlightFieldName, highlightText, true, false, false)); } }