Re: Scoring depending on terms combination

2006-11-12 Thread Chris Hostetter
: The user searches for the terms A, B, C and D. : Of-course, the document containing all terms has the highest score. The : document containing just the terms B and C has a higher score than the : document containing the terms A and B. : : A+B+C+D > B+C > A+B : : I know the boosting combinations

Re: search by field, not field value

2006-11-12 Thread tony yin
What a valuable answer. thanks. don't worry about multiple hits. I would never store multiple values in specific_field. On 11/13/06, Erick Erickson <[EMAIL PROTECTED]> wrote: ... -- Kindly Regards Tony ===

Re: Filter query method

2006-11-12 Thread Erick Erickson
Just don't close it. Think of this as a singleton pattern. Erick On 11/12/06, spinergywmy <[EMAIL PROTECTED]> wrote: Hi Doron, How to reuse the searcher? Is there any example on how to do this? Thanks regards, Wooi Meng -- View this message in context: http://www.nabble.com/Filte

Re: Filter query method

2006-11-12 Thread spinergywmy
Hi Doron, How to reuse the searcher? Is there any example on how to do this? Thanks regards, Wooi Meng -- View this message in context: http://www.nabble.com/Filter-query-method-tf2586547.html#a7310277 Sent from the Lucene - Java Users mailing list archive at Nabble.com. -

RE: IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-12 Thread Jean-Francois Beaulac
Forgot to post the stacktrace java.io.IOException: read past EOF at org.apache.lucene.store.BufferedIndexInput.refill(BufferedIndexInput.java:60) at org.apache.lucene.store.BufferedIndexInput.readByte(BufferedIndexInput.java:33) at org.apache.lucene.store.IndexInput.readI

IndexReader.getTermFreqVectors() throws Read past EOF exception

2006-11-12 Thread Jean-Francois Beaulac
Hi, I make a search on several indexes using a MultiSearcher and I can only retrieve the TermFreqVectors from the IndexSearcher in the Searcher at position 0 in my searchable array. For example (): hits = multi.search(luceneQuery); for (int k = 0; k < hits.length(); k++) { ((IndexSearc

Re: search by field, not field value

2006-11-12 Thread Erick Erickson
I'm going mostly from memory here, so the details may not be entirely accurate, but. See TermDocs (FilterTermDocs?). Use the seek method to get to the term e.g. TermDocs.seek(new Term("specific_field", "")); Note that the "" as the value of the term gets all the terms. Then use TermDocs.nex

Re: Partial Word Matches

2006-11-12 Thread Erick Erickson
I *knew* it wasn't just a random thing, solely intended to confuse me Thanks for that.. Erick On 11/11/06, Chris Hostetter <[EMAIL PROTECTED]> wrote: : Well, first ~ isn't a wildcard, it's a "fuzzy search" (aka similar terms). : So getting "bellow" for "yellow~" is expected. Although, s

Re: search by field, not field value

2006-11-12 Thread Simon Willnauer
Hey tony, I guess the easiest way for you to do that is to create a extra field containig the field names and just fire a boolean query on this extra field. best regards simon On 11/12/06, tony yin <[EMAIL PROTECTED]> wrote: I want search document by specific field, not by field value, How to?

search by field, not field value

2006-11-12 Thread tony yin
I want search document by specific field, not by field value, How to? I have some document store in fields{content, key, path} and some in {content, key, path, specific_field} and I want to find all the document that have specific_field, Could you help me?