Query.toString(0 does not escape special characters

2005-05-24 Thread Peter Gelderbloem
Hi, I am building queries using the query api and when I use } in my fieldname and then call toString on the query, QueryParser throws a ParseException when trying to parse it. How do I fix this? Regards Peter Gelderbloem - To

Re: Search Theory Book

2005-05-24 Thread Ian Soboroff
[EMAIL PROTECTED] writes: I would go with Information Retrieval: Algorithms and Heuristics by Grossman (a bit expensive, but worth the money http://www.fetchbook.info/compare.do?search=0134638379). The second edition is about $38 in paperback.

tf=0 while lucene is finding matches?

2005-05-24 Thread M. Mokotov
Hi, Anyone knows what is exactly Similarity.tf()? I understood it's term frequency on a document. Still, when I'm searching for a string a document contains, and the Explain().toString() shows tf=0. search string: SubTitle:(Without) matching documents: 3 0: 1.0: Dropping Out, Drifting Off,

Re: tf=0 while lucene is finding matches?

2005-05-24 Thread Erik Hatcher
My hunch is that you're not using the document id in your calls to IndexSearcher.explain(). You don't pass the hit index number. Erik On May 24, 2005, at 11:13 AM, M. Mokotov wrote: OK, I think I'm missing something big time... Can someone point me to the documentation of the explain?

Re: Query.toString(0 does not escape special characters

2005-05-24 Thread Chris Lamprecht
Hi Peter, See the method escape(String s) of QueryParser, it may do what you want. On 5/24/05, Peter Gelderbloem [EMAIL PROTECTED] wrote: Hi, I am building queries using the query api and when I use } in my fieldname and then call toString on the query, QueryParser throws a ParseException

RE: Using Highlighter to highlight entire HTML documents?

2005-05-24 Thread Will Allen
The challenge with this is always not breaking the HTML page itself. -Original Message- From: Fred Toth [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 24, 2005 3:47 PM To: java-user@lucene.apache.org Subject: Using Highlighter to highlight entire HTML documents? Hi, We have a need to

Re: Using Highlighter to highlight entire HTML documents?

2005-05-24 Thread markharw00d
Fred Toth wrote: Hi, We have a need to present HTML documents with all search terms highlighted. Everything I've seen regarding the Highlighter code seems to point to the typical case of extracting relevant fragments from the text for presentation of hit lists. If you dont want to fragment

Re: Term offset support not in current release?

2005-05-24 Thread Erik Hatcher
On May 24, 2005, at 8:01 PM, Fred Toth wrote: Hi, Just checking, but it appears that the support for storing term offsets is available only in the current svn version, yes? Is there any reasonable way to patch this stuff into the current release? I suspect not, since the API for Field appears