Re: Searcher javadoc problem

2009-10-03 Thread DM Smith
On Oct 3, 2009, at 9:23 PM, Mark Miller wrote: Gotchya - that clears up my mind. I know your an advanced user, so it threw me for a loop that you would be using Hits like a Collector. Just have been seeing that a lot lately. Is there enough interest to add a new search method? (Hiterator?

Re: Searcher javadoc problem

2009-10-03 Thread Mark Miller
Gotchya - that clears up my mind. I know your an advanced user, so it threw me for a loop that you would be using Hits like a Collector. Just have been seeing that a lot lately. Just read to much into: So what is the appropriate documentation for getting all "hits"? Another option (of course) is

Re: Searcher javadoc problem

2009-10-03 Thread DM Smith
It makes sense if you understand the context. We make each verse of a Bible a document. There are about 36000 docc in a Bible. We want a user to find all the verses that match there search to give the count of total hits. We then show slices of the hits from first hit to last im document or

Re: Searcher javadoc problem

2009-10-03 Thread Mark Miller
I think it could be reworded as well - its kind of uhh ... but I'll leave that to someone else if they care. For now I just pointed it to the correct method. Mark Miller wrote: > You used Hits to get all that hits? Nasty man - thats we deprecated that > class - even though the JavaDoc warns you th

Re: Searcher javadoc problem

2009-10-03 Thread Mark Miller
You used Hits to get all that hits? Nasty man - thats we deprecated that class - even though the JavaDoc warns you thats a major speed trap, everyone still did it ... use a Collector. Your right though - it shouldn't point to IndexSearcher.search(Query) after that - it should point to IndexSearche

RE: Searcher javadoc problem

2009-10-03 Thread Uwe Schindler
04, 2009 12:04 AM To: java-dev@lucene.apache.org Subject: Searcher javadoc problem I'm working on migrating my code to 2.9. And I'm trying to figure out what to do. Along the way I found a circular argument in the JavaDoc for Searcher. BTW, this is not a user question. My current

Searcher javadoc problem

2009-10-03 Thread DM Smith
I'm working on migrating my code to 2.9. And I'm trying to figure out what to do. Along the way I found a circular argument in the JavaDoc for Searcher. BTW, this is not a user question. My current code calls: Hits hits = searcher.search(query); The JavaDoc for it says: /**