Re: searching files and folders using lucene

2006-04-24 Thread Erik Hatcher
Have a look at the first two programs mentioned in Chapter 1 of "Lucene in Action". The code is freely available at http:// www.lucenebook.com. Specifically look at Indexer.java and Searcher.java. Erik On Apr 24, 2006, at 11:18 PM, viswanadh yanamandra wrote: I am new to lucene

searching files and folders using lucene

2006-04-24 Thread viswanadh yanamandra
I am new to lucene how can i write code to search files or folders using lucene. - Blab-away for as little as 1¢/min. Make PC-to-Phone Calls using Yahoo! Messenger with Voice.

Re: using boolean operators with the PhraseQuery

2006-04-24 Thread Paul Elschot
On Monday 24 April 2006 16:24, Vishal Bathija wrote: > How do I get the spans (getSpans()) if I use the SpanNearQuery as a > clause (subquery) in a BooleanQuery You can't normally. The Spans of the subqueries are used to compute the scores of each matching document, via SpanScorer and BooleanScore

Re: Segments creation

2006-04-24 Thread Otis Gospodnetic
I, too, can never remember the exact formula, so I always have to look it up in Lucene in Action. If you have LIA, look at the "Tuning indexing performance" section (2.7.1, page 42): http://www.lucenebook.com/search?query=segment+merge+files Otis - Original Message From: Erik Hatcher

Re: BooleanQuery$TooManyClauses

2006-04-24 Thread Erick Erickson
Be careful, especially if you have some test data that you're using to prove things out and only later will you use the "real" (and usually much larger) data set. There are two problems that I know of with bumping the clauses to MAX_VALUE. 1> you can run out of memory. 2> it might take a long time

Re: using boolean operators with the PhraseQuery

2006-04-24 Thread Vishal Bathija
How do I get the spans (getSpans()) if I use the SpanNearQuery as a clause (subquery) in a BooleanQuery I currently have SpanQuery [] clauses1 = new SpanQuery[phraseTerms1.length]; for(int count =0; count< phraseTerms1.length; count++) { clauses1[count]=phrase1[count]; } SpanQuery [] clauses2 = n

Re: BooleanQuery$TooManyClauses

2006-04-24 Thread Flávio Marim
Thanks friends. The problem was solved. I used BooleanQuery.setMaxClauseCount(Integer.MAX_VALUE) because the value was really big and so variable that I couldn't determine a consistent top value. -- Marim Supriya Kumar Shyamal disse: > Normally the default setup for BooleanCluase count is 1024, m

Re: Segments creation

2006-04-24 Thread Erik Hatcher
To be honest, I have to look up what has been written on this topic to get the answer right myself. Otis did a thorough write-up in "Lucene in Action". Lucene's javadocs also cover these factors here: loo

Re: Most used words

2006-04-24 Thread Daniel Cortes
Not now, but When I finished the app I showed in the list. Kapil Chhabra wrote: Its a good idea. src/org/getopt/luke/HighFreqTerms.java should definately help. You may also control the number of terms[tags in your case] required as the output. Do you have a demo URL for your appl.? Regards,