Re: Range query on a substring.

2013-07-16 Thread Jack Krupansky
et Arslan Sent: Tuesday, July 16, 2013 6:33 PM To: solr-user@lucene.apache.org Subject: Re: Range query on a substring. Hi Macrin, May be you can use https://issues.apache.org/jira/browse/SOLR-1604 . ComplexPhraseQueryParser supports ranges inside phrases. F

Re: Range query on a substring.

2013-07-16 Thread Ahmet Arslan
ination of different fields is allowed). I'd like to spend some time on ANTLR and the new way of parsing you mentioned. I will let you know if it was useful for me. Thanks. Kind regards. On 16 July 2013 20:07, Roman Chyla wrote: > Well, I think this is slightly too categorical - a range qu

Re: Range query on a substring.

2013-07-16 Thread Roman Chyla
on of different fields is allowed). I'd like to spend > some time on ANTLR and the new way of parsing you mentioned. I will let you > know if it was useful for me. Thanks. > > Kind regards. > > > On 16 July 2013 20:07, Roman Chyla wrote: > > > Well, I think this is

Re: Range query on a substring.

2013-07-16 Thread Marcin Rzewucki
ferent fields is allowed). I'd like to spend some time on ANTLR and the new way of parsing you mentioned. I will let you know if it was useful for me. Thanks. Kind regards. On 16 July 2013 20:07, Roman Chyla wrote: > Well, I think this is slightly too categorical - a range query on a >

Re: Range query on a substring.

2013-07-16 Thread Roman Chyla
Well, I think this is slightly too categorical - a range query on a substring can be thought of as a simple range query. So, for example the following query: "lucene 1*" becomes behind the scenes: "lucene (10|11|12|13|14|1abcd)" the issue there is that it is a string rang

Re: Range query on a substring.

2013-07-16 Thread Jack Krupansky
To be crystal clear, there is no such thing as "a range query on a substring" in Solr or Lucene. -- Jack Krupansky -Original Message- From: Marcin Rzewucki Sent: Tuesday, July 16, 2013 5:13 AM To: solr-user@lucene.apache.org Subject: Re: Range query on a substring. By m

Re: Range query on a substring.

2013-07-16 Thread Marcin Rzewucki
By multivalued I meant an array of values. For example: text1 (X) text2 (Y) I'd like to avoid spliting it as you propose. I have 2.3mn collection with pretty large records (few hundreds fields and more per record). Duplicating them would impact performance. Regards. On 16 July 2013 10:26

Re: Range query on a substring.

2013-07-16 Thread Oleg Burlaca
Ah, you mean something like this: record: Id=10, text = "this is a text N1 (X), another text N2 (Y), text N3 (Z)" Id=11, text = "this is a text N1 (W), another text N2 (Q), third text (M)" and you need to search for: "text N1" and X < B ? How big is the core? the first thing that comes to my min

Re: Range query on a substring.

2013-07-16 Thread Marcin Rzewucki
Hi Oleg, It's a multivalued field and it won't be easier to query when I split this field into text and numbers. I may get wrong results. Regards. On 16 July 2013 09:35, Oleg Burlaca wrote: > IMHO the number(s) should be extracted and stored in separate columns in > SOLR at indexing time. > >

Re: Range query on a substring.

2013-07-16 Thread Oleg Burlaca
IMHO the number(s) should be extracted and stored in separate columns in SOLR at indexing time. -- Oleg On Tue, Jul 16, 2013 at 10:12 AM, Marcin Rzewucki wrote: > Hi, > > I have a problem (wonder if it is possible to solve it at all) with the > following query. There are documents with a field

Range query on a substring.

2013-07-16 Thread Marcin Rzewucki
Hi, I have a problem (wonder if it is possible to solve it at all) with the following query. There are documents with a field which contains a text and a number in brackets, eg. myfield: this is a text (number) There might be some other documents with the same text but different number in bracke