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
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
>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()
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
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
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
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
>
>
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
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
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,
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
>
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
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
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
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.
>
>
> --
...
>
> 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
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
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'
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
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:
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
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
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
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.
>
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
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
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
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
28 matches
Mail list logo