Re: Automatic conversion to Range Query

2017-05-11 Thread Aman Deep Singh
Yes hoss, it only convert to the range query when there is two token only,,BTW thanks for raising the issue On 11-May-2017 5:38 AM, "Chris Hostetter" wrote: > : I'm facing a issue when i'm querying the Solr > : my query is "xiomi Mi 5 -white [64GB/ 3GB]" > ... > : +(((Synonym(nameSearch

Re: Automatic conversion to Range Query

2017-05-10 Thread Chris Hostetter
: I'm facing a issue when i'm querying the Solr : my query is "xiomi Mi 5 -white [64GB/ 3GB]" ... : +(((Synonym(nameSearch:xiaomi nameSearch:xiomi)) (nameSearch:mi) : (nameSearch:5) -(Synonym(nameSearch:putih : nameSearch:white))*(nameSearch:[64gb/ TO 3gb])*)~4) ... : Now due to aut

Re: Automatic conversion to Range Query

2017-05-08 Thread Rick Leir
Of course, I should have noticed he typed 3G instead of 32G. On 2017-05-07 10:46 AM, Aman Deep Singh wrote: Yes Rick, User is actually typing this type of queries ,this was a random user query pick from access logs On 07-May-2017 7:29 PM, "Rick Leir" wrote: Hi Aman, Is the user actually ent

Re: Automatic conversion to Range Query

2017-05-07 Thread Aman Deep Singh
Yes Rick, User is actually typing this type of queries ,this was a random user query pick from access logs On 07-May-2017 7:29 PM, "Rick Leir" wrote: Hi Aman, Is the user actually entering that query? It seems unlikely. Perhaps you have a form selector for various Apple products. Could you not

Re: Automatic conversion to Range Query

2017-05-07 Thread Rick Leir
Hi Aman, Is the user actually entering that query? It seems unlikely. Perhaps you have a form selector for various Apple products. Could you not have an enumerated type for the products, and simplify everything? I must be missing something here. Cheers -- Rick On May 6, 2017 8:38:14 AM EDT, Sha

Re: Automatic conversion to Range Query

2017-05-07 Thread Erik Hatcher
Fair enough indeed. And as you've experienced, that other functionality includes syntax that needs escaping. If you're using SolrJ then there's a utility method to escape characters. Erik > On May 6, 2017, at 20:53, Aman Deep Singh wrote: > > Hi Erik, > We can't use dismax as we are

Re: Automatic conversion to Range Query

2017-05-06 Thread Aman Deep Singh
Hi Erik, We can't use dismax as we are using the other functionality of edismax parser On 07-May-2017 12:13 AM, "Erik Hatcher" wrote: What about dismax instead of edismax?It might do the righter thing here without escaping. > On May 6, 2017, at 12:57, Shawn Heisey wrote: > >> On 5/6/2017 7

Re: Automatic conversion to Range Query

2017-05-06 Thread Erik Hatcher
What about dismax instead of edismax?It might do the righter thing here without escaping. > On May 6, 2017, at 12:57, Shawn Heisey wrote: > >> On 5/6/2017 7:09 AM, Aman Deep Singh wrote: >> After escaping the square bracket the query is working fine, Is their >> any way in the parser to av

Re: Automatic conversion to Range Query

2017-05-06 Thread Shawn Heisey
On 5/6/2017 7:09 AM, Aman Deep Singh wrote: > After escaping the square bracket the query is working fine, Is their > any way in the parser to avoid the automatic conversion if not proper > query will be passed like in my case even though I haven't passed > proper range query (with keyword TO). If

Re: Automatic conversion to Range Query

2017-05-06 Thread Aman Deep Singh
Thanks Shawn, After escaping the square bracket the query is working fine, Is their any way in the parser to avoid the automatic conversion if not proper query will be passed like in my case even though I haven't passed proper range query (with keyword TO). On 06-May-2017 6:08 PM, "Shawn Heisey"

Re: Automatic conversion to Range Query

2017-05-06 Thread Shawn Heisey
On 5/5/2017 12:42 PM, Aman Deep Singh wrote: > Hi Erick, I don't want to do the range query , That is why I'm using > the pattern replace filter to remove all the non alphanumeric to space > so that this type of situation don't arrive,Since end user can query > anything, also in the query I haven't

Re: Automatic conversion to Range Query

2017-05-05 Thread Aman Deep Singh
I'm using a custom request handler with deftype as edismax My query is - xiomi Mi 5 -white [64GB/ 3GB] On 06-May-2017 12:48 AM, "Erick Erickson" wrote: OK, what _request handler_ are you using? what is the original query? On Fri, May 5, 2017 at 11:42 AM, Aman Deep Singh wrote: > Hi Erick, > I

Re: Automatic conversion to Range Query

2017-05-05 Thread Erick Erickson
OK, what _request handler_ are you using? what is the original query? On Fri, May 5, 2017 at 11:42 AM, Aman Deep Singh wrote: > Hi Erick, > I don't want to do the range query , > That is why I'm using the pattern replace filter to remove all the non > alphanumeric to space so that this type of si

Re: Automatic conversion to Range Query

2017-05-05 Thread Aman Deep Singh
Hi Erick, I don't want to do the range query , That is why I'm using the pattern replace filter to remove all the non alphanumeric to space so that this type of situation don't arrive,Since end user can query anything, also in the query I haven't mention any range related keyword (TO). If my query

Re: Automatic conversion to Range Query

2017-05-05 Thread Erick Erickson
I'm going to go a little sideways and claim this is an "XY" problem, the range bits are a side-issue. The problem is that you're trying to do ranges on textual data that are really numbers. So even if there's a way to fix the range issue you're talking about, it still won't do what you expect. Con