Payload Example for Lucene 3.0.0

2010-04-16 Thread Ajay_978
Hi, I would like to have example of adding payload for lucene 3.0. I found an example on internet which uses BoostingTermQuery but I couldn't find this class in Lucene 3.0.0 jar and I was wondering if someone knows the workaround or where can I find. If someone can post an example that will be ver

Re: about analyzer for searching location

2010-04-16 Thread Samarendra Pratap
Hi. I don't think you need a different analyzer. Read about PhraseQuery. If you are using parse() method of QueryParser. Enclose the searched string in extra double quotes, which must obviously be escaped. Quer

Range Query Assistance

2010-04-16 Thread info
Hello, I would like to query based on a start and end date. I was thinking something like this start_date: [2101 TO ] end_date: [ TO 20900101] Would this work for me? Our dates are stored in the index as strings so I am not sure the syntax above would be correct. Any assistance would be a

Re: Range Query Assistance

2010-04-16 Thread suman.holani
Hello Joseph, Yes this would work .Range queries could be used for range searches. But this is very expensive in terms of performance. Regards, Suman On Fri, 16 Apr 2010 06:23:30 -0700, wrote: > Hello, > > I would like to query based on a start and end date. I was thinking > something like

Re: trying to resolve error: after flush: fdx size mismatch

2010-04-16 Thread Michael McCandless
It's also exceptionally strange that the size of your fdx files, when you hit the exception, is not even, and so out of whack (103, 8457 bytes) given that you have 1 doc. Are there virus checkers or any other filesystem spying type apps running on this one machine? Or... is it possible two IWs we

Re: trying to resolve error: after flush: fdx size mismatch

2010-04-16 Thread jm
oh, just FYI, the documents I add are the same, they have all the same 5 o 6 fields, but the contents of a couple of those fields can vary wildly among documents. Virus checkers and similar stuff: no. Lock factory: I am using this: FSDirectory directory = FSDirectory.getDirectory(index); director

Re: trying to resolve error: after flush: fdx size mismatch

2010-04-16 Thread jm
On Fri, Apr 16, 2010 at 5:01 PM, jm wrote: > oh, just FYI, the documents I add are the same, they have all the same I meant 'are NOT the same size'... - To unsubscribe, e-mail: java-user-unsubscr...@lucene.apache.org For additio

Term offsets for highlighting

2010-04-16 Thread Stephen Greene
Hello, I am trying to determine begin and end offsets for terms and phrases matching a query. Is there a way using either the highlighter or fast vector highlighter in contrib? I have already attempted extending the highlighter which would match terms but would not match phrases. The rea

Re: Payload Example for Lucene 3.0.0

2010-04-16 Thread Ahmet Arslan
> Hi, > I would like to have example of adding payload for lucene > 3.0. I found an > example on internet which uses BoostingTermQuery but I > couldn't find this > class in Lucene 3.0.0 jar and I was wondering if someone > knows the > workaround or where can I find. If someone can post an > exampl

NumericRangeQuery in BooleanQuery

2010-04-16 Thread Murdoch, Paul
Hi, Can a NumericRangeQuery be one of several Queries inside a complex BooleanQuery? When I do this my NumericRangeQuery seems to automagically be converted to a TermRangeQuery. Thanks, Paul

RE: NumericRangeQuery in BooleanQuery

2010-04-16 Thread Uwe Schindler
Thats not true, do you build the NumericRangeQuery in code, or do you use QueryParser. The latter is not able to produce NRQ without customizing! Else numeric RangeQueries are no magically converted they stay and are rewritten to CustomSCoreQueries. - Uwe Schindler H.-H.-Meier-Allee 63, D-28

Re: Term offsets for highlighting

2010-04-16 Thread Koji Sekiguchi
Stephen Greene wrote: Hello, I am trying to determine begin and end offsets for terms and phrases matching a query. Is there a way using either the highlighter or fast vector highlighter in contrib? I have already attempted extending the highlighter which would match terms but would not