Re: Range query with Lucene7.7.1 on old indexes.

2021-09-01 Thread Uwe Schindler
Hi, The old trie based range fields were deprecated in License 6 and removed in 7. https://lucene.apache.org/core/6_6_0/core/org/apache/lucene/search/LegacyNumericRangeQuery.html Upgrading the index does not help, because there's no easy way to convert trie fields to points and thats not done au

Re: range query highlighting

2015-12-23 Thread will martin
Todd: "This trick just converts the multi term queries like PrefixQuery or RangeQuery to boolean query by expanding the terms using index reader." http://stackoverflow.com/questions/7662829/lucene-net-range-queries-highlighting beware cost. (my comment) g’luck will > On Dec 23, 2015, at 4:49

Re: Range Query Assistance

2010-04-21 Thread Otis Gospodnetic
Joseph, If you can, get the latest Lucene and use NumericField to index your dates with appropriate precision and then use NumericRangeQueries when searching. This will be faster than searching for string dates in a given range. Otis Sematext :: http://sematext.com/ :: Solr - Lucene - Nut

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: Range query and a proximity search

2009-07-21 Thread ba3
Excellent !! Thanks for pointing me towards the ComplexPhraseQueryParser. --Regards Ba3 Ahmet Arslan wrote: > > >> Can you please suggest me some pointers as to how a range >> query combined with proximity be done. > > Your remedy is ComplexPhraseQueryParser that utilizes SpanQuery family. >

Re: Range query and a proximity search

2009-07-21 Thread AHMET ARSLAN
> Can you please suggest me some pointers as to how a range > query combined with proximity be done. Your remedy is ComplexPhraseQueryParser that utilizes SpanQuery family. https://issues.apache.org/jira/browse/LUCENE-1486 That accepts ranges, ORs, Wildcards inside Phrase queries. Using this new

Re: Range Query Question

2008-07-25 Thread daniel rosher
Hi Thomas, I think one solution would be similar to the autocomplete function I've implemented in solr, you can use this as follows in solr: FieldType: This can then match on the whole string OR part of the string. To use the QueryParser, you'd not be using the query part of the ana

Re: Range Query Question

2008-07-25 Thread Thomas Becker
Btw. I tried the wildcard since I found something on google, which noted wildcards together with StartsWith queries. Thomas Becker wrote: Hi Ian, no the wild cards should not be necessary. That was just the last try out of some. I now the exact content of both fields in my range query. The c

Re: Range Query Question

2008-07-25 Thread Thomas Becker
Hi Ian, no the wild cards should not be necessary. That was just the last try out of some. I now the exact content of both fields in my range query. The case is as the java code found it, but the analyzer will lowercase it anyhow. I'm trying the SimpleAnalyzer since all other seem to ommit si

Re: Range Query Question

2008-07-25 Thread Ian Lea
Hi Are you sure your range queries should have wild card asterisks on the end? Looks odd to me and I don't know what the effect would be. I'd also prefer everything in lower case but maybe you've got the right analyzers being used consistently in indexing and searching chains. -- Ian. On F

Re: range query on dates

2006-12-15 Thread Kapil Chhabra
In my applications, I have stored the dates as MMDD to make it simple and easy. Works just fine for me. regards, kapilChhabra Cam Bazz wrote: Hello, how can I make a query to bring documents between timestamp begin and timestamp end, given that I have stored my dates using DateTools.timeT

Re: range query on dates

2006-12-14 Thread Doron Cohen
There is an example in TestDateFilter http://svn.apache.org/viewvc/lucene/java/trunk/src/test/org/apache/lucene/search/TestDateFilter.java?view=log "Cam Bazz" <[EMAIL PROTECTED]> wrote: > Hello, > > how can I make a query to bring documents between timestamp begin and > timestamp end, given that I

Re: range query on dates

2006-12-14 Thread Erick Erickson
I'd search this mail archive for DateTools, this has been discussed repeatedly and you'd get lots and lots of info. Erick On 12/14/06, Cam Bazz <[EMAIL PROTECTED]> wrote: Hello, how can I make a query to bring documents between timestamp begin and timestamp end, given that I have stored my da

Re: range query

2006-09-13 Thread mark harwood
RangeQueries are evil. http://wiki.apache.org/jakarta-lucene/FilteringOptions - Original Message From: Bhavin Pandya <[EMAIL PROTECTED]> To: [email protected] Sent: Wednesday, 13 September, 2006 3:22:38 PM Subject: range query Hi, I am using lucene from last few months...