Re: TermRangeQuery work not

2015-12-26 Thread Michael Wilkowski
You mixed lowerDate with upperDate. MW Sent from Mi phone On 25 Dec 2015 16:41, "kaog" wrote: > hi > I did the change of variable "ISBN, it was a mistake I did when I wrote in > the post. unfortunately still it does not work TermRangeQuery. :( > > > > -- &g

Re: TermRangeQuery work not

2015-12-25 Thread kaog
hi I did the change of variable "ISBN, it was a mistake I did when I wrote in the post. unfortunately still it does not work TermRangeQuery. :( -- View this message in context: http://lucene.472066.n3.nabble.com/TermRangeQuery-work-not-tp4246519p4247358.html Sent from the Lucene - Java

Re: TermRangeQuery work not

2015-12-21 Thread Uwe Schindler
>range date whit TermRangeQuery . Total structure is >looking like this: > >public static void main(String[] args) throws IOException, >ParseException { > >StandardAnalyzer analyzer = new StandardAnalyzer(); > >Directory index = new RAMDirectory()

TermRangeQuery work not

2015-12-21 Thread kaog
Hi i am kevin from Chile and i am new whit Lucene, I have 5 documents. Each document has a field date but i would search on range date whit TermRangeQuery . Total structure is looking like this: public static void main(String[] args) throws IOException, ParseException { StandardAnalyzer

Re: TermRangeQuery with Proximity

2015-12-09 Thread Henri Hein
Uwe, Thanks, that worked. SpanNearQuery even has the ordering flag, which I also needed. I'm not seeing a big performance slowdown on my quick little test index, but I'll try with a bigger one and see what kind of running times I'm looking at. Timothy: thanks for the pointer, we will probably n

RE: TermRangeQuery with Proximity

2015-12-08 Thread Allison, Timothy B.
ssage- From: Uwe Schindler [mailto:u...@thetaphi.de] Sent: Tuesday, December 08, 2015 9:08 AM To: java-user@lucene.apache.org Subject: RE: TermRangeQuery with Proximity You can create a generalization of PheaseQueries, called SpanNearQueries. Those can have any other SpanQuery inst

RE: TermRangeQuery with Proximity

2015-12-08 Thread Uwe Schindler
5 5:56 AM > To: java-user@lucene.apache.org > Subject: TermRangeQuery with Proximity > > I saw this archived thread: > http://mail-archives.apache.org/mod_mbox/lucene-java- > user/201208.mbox/%3CCAJcVXktUtw9TN3thMhcvT0MBeww+LP_MCZSrgF3a > tomzjku...@mail.gmail.com%3E > >

TermRangeQuery with Proximity

2015-12-08 Thread Henri Hein
range search with TermRangeQuery. I don't know how to combine them and the above archived thread seems to indicate it's not possible. Has this changed? Thanks, - Henri Hein Thin Air Labs

TermRangeQuery with a custom comparator

2013-08-06 Thread ikoelliker
Hello, In earlier versions of Lucene the TermRangeQuery constructor was able to take a Collator object in order to provide a custom comparator for comparing terms when determining whether or not a document's term fell within the search range. In Lucene 4.x this functionality has been re

Re: TermRangeQuery performance oddness

2013-05-07 Thread Aleksey
der in which they were indexed. > > - > Uwe Schindler > H.-H.-Meier-Allee 63, D-28213 Bremen > http://www.thetaphi.de > eMail: u...@thetaphi.de > > >> -Original Message- >> From: Aleksey [mailto:bitterc...@gmail.com] >> Sent: Tuesday, May 07,

RE: TermRangeQuery performance oddness

2013-05-07 Thread Uwe Schindler
H.-Meier-Allee 63, D-28213 Bremen http://www.thetaphi.de eMail: u...@thetaphi.de > -Original Message- > From: Aleksey [mailto:bitterc...@gmail.com] > Sent: Tuesday, May 07, 2013 4:15 AM > To: java-user@lucene.apache.org > Subject: TermRangeQuery performance oddness >

TermRangeQuery performance oddness

2013-05-06 Thread Aleksey
Hi guys, If I run 2 term range queries: new TermRangeQuery("title", new BytesRef("A"), null, true, true); and new TermRangeQuery("title", new BytesRef("Z"), null, true, true); The one that starts with "Z" is several times faster (I make 1000 qu

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
e, or as a wildcard or prefix query (e.g., >"Microsoft*"), or as a range query with the full literal string values. > >-- Jack Krupansky > >-Original Message- >From: Jochen Hebbrecht >Sent: Monday, August 20, 2012 9:13 AM >To: java-user@lucene.apache.org >Subject

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jack Krupansky
the full literal string values. -- Jack Krupansky -Original Message- From: Jochen Hebbrecht Sent: Monday, August 20, 2012 9:13 AM To: java-user@lucene.apache.org Subject: Re: TermRangeQuery with multiple words Hi Ian, Thanks for your answer! Well, my example might have been not so clear. He

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
h Microsoft as required TermQuery and a required TermRangeQuery > from Belgium to Spain but that would fall apart with multiword company > or region names. > > It feels like there should be a moderately simple answer, but I can't > spot it. Maybe someone else can. > > > --

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
... > > What I can do, is to search from "Microsoft" to "Microsoft", this one > works. But not the one stated above ... > So the question is: can Lucene make a String range query on multiple terms? > > Kind regards, > Jochen > > > 2012/8/20 Ian Le

Re: TermRangeQuery with multiple words

2012-08-20 Thread Ian Lea
Jochen No, I don't think that Lucene can make a String range query on multiple terms. For your Microsoft example you could build a query with Microsoft as required TermQuery and a required TermRangeQuery from Belgium to Spain but that would fall apart with multiword company or region names

Re: TermRangeQuery with multiple words

2012-08-20 Thread Jochen Hebbrecht
ple terms in a range :-( ... What I can do, is to search from "Microsoft" to "Microsoft", this one works. But not the one stated above ... So the question is: can Lucene make a String range query on multiple terms? Kind regards, Jochen 2012/8/20 Ian Lea > This won'

Re: TermRangeQuery with multiple words

2012-08-20 Thread Ian Lea
This won't work with TermRangeQuery because neither "test 1" not "test 3" are terms. "test" will be a term, output by the analyzer. You'll be able to see the indexed terms in Luke. Sounds very flaky anyway - you'd get "term 10 xxx" and &q

Re: TermRangeQuery

2010-11-28 Thread Erick Erickson
TX-NYC-BBC-123 > >>>> > >>>> The ids may range from 90 to 1000. Is there another approach I could > >> take? I tried building a string with all the ids and set them against a > >> field for example: > >>>> > >>>> dataId:

Re: TermRangeQuery

2010-11-28 Thread Amin Mohammed-Coleman
uilding a string with all the ids and set them against a >> field for example: >>>> >>>> dataId: ID-NYC-123 dataId: ID-NYC-1234 >>>> >>>> but that's not a great approach I know... >>>> >>>> any help would be appreciate

Re: TermRangeQuery

2010-11-28 Thread Erick Erickson
ks > >> Amin > >> > >> > >> > >> On 26 Nov 2010, at 14:39, Ian Lea wrote: > >> > >>> Absolutely, as long as your ids will sort as you expect. > >>> > >>> I'm not clear what you mean by XDF-123 bu

Re: TermRangeQuery

2010-11-26 Thread Amin Mohammed-Coleman
as you expect. >>> >>> I'm not clear what you mean by XDF-123 but if you've got >>> >>> AAA-123 >>> AAA-124 >>> ... >>> ABC-123 >>> ABC-234 >>> etc. >>> >>> then you'll be fine. If

Re: TermRangeQuery

2010-11-26 Thread Ian Lea
6 Nov 2010, at 14:39, Ian Lea wrote: > >> Absolutely, as long as your ids will sort as you expect. >> >> I'm not clear what you mean by XDF-123 but if you've got >> >> AAA-123 >> AAA-124 >> ... >> ABC-123 >> ABC-234 >> etc. >

Re: TermRangeQuery

2010-11-26 Thread Amin Mohammed-Coleman
u expect. > > I'm not clear what you mean by XDF-123 but if you've got > > AAA-123 > AAA-124 > ... > ABC-123 > ABC-234 > etc. > > then you'll be fine. If they don't sort so neatly you can use the > TermRangeQuery constructor that tak

Re: TermRangeQuery

2010-11-26 Thread Amin Mohammed-Coleman
I'm not clear what you mean by XDF-123 but if you've got > > AAA-123 > AAA-124 > ... > ABC-123 > ABC-234 > etc. > > then you'll be fine. If they don't sort so neatly you can use the > TermRangeQuery constructor that takes a Collator but

Re: TermRangeQuery

2010-11-26 Thread Ian Lea
Absolutely, as long as your ids will sort as you expect. I'm not clear what you mean by XDF-123 but if you've got AAA-123 AAA-124 ... ABC-123 ABC-234 etc. then you'll be fine. If they don't sort so neatly you can use the TermRangeQuery constructor that takes a Collator but

TermRangeQuery

2010-11-26 Thread Amin Mohammed-Coleman
Hi All I was wondering whether I can use TermRangeQuery for my use case. I have a collection of ids (represented as XDF-123) and I would like to do a search for all the ids (might be in the range of 1) and for each matching id I want to get the corresponding data that is stored in the