lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From wojtekpia <wojte...@hotmail.com>
Subject Re: how can I use debugQuery if I have extended QParserPlugin?
Date Fri, 16 Oct 2009 21:15:12 GMT

Good catch. I was testing on a nightly build from mid-July. I just tested on
a similar deployment with nightly code from Oct 5th and everything seems to
work. 

My mid-July deployment breaks on sints, integers, sdouble, doubles, slongs
and longs. My more recent deployment works with tints, sints, integers,
tdoubles, sdoubles, doubles, tlongs, slongs, and longs. (I don't have any
floats in my schema so I didn't test those). Sounds like another reason to
upgrade to 1.4.

Wojtek


Yonik Seeley-3 wrote:
> 
> Is this with trunk? I can't seem to reproduce this... what's the field
> type?
> 
> -Yonik
> http://www.lucidimagination.com
> 
> On Fri, Oct 16, 2009 at 3:01 PM, wojtekpia <wojtek_p@hotmail.com> wrote:
>>
>> I'm seeing the same behavior and I don't have any custom query parsing
>> plugins. Similar to the original post, my queries like:
>>
>> select?q=field:[1 TO *]
>> select?q=field:[1 TO 2]
>> select?q=field:[1 TO 2]&debugQuery=true
>>
>> work correctly, but including an unboundd range appears to break the
>> debug
>> component:
>> select?q=field:[1 TO *]&debugQuery=true
>>
>> My stack trace is the same as the original post.
>>
>>
>> gdeconto wrote:
>>>
>>> my apologies, you are correct; I put the stack trace in an edit of the
>>> post and not in the original post.
>>>
>>> re version info:
>>>
>>> Solr Specification Version: 1.3.0.2009.07.08.08.05.45
>>> Solr Implementation Version: nightly exported - yonik - 2009-07-08
>>> 08:05:45
>>>
>>> NOTE: I have some more info on this NPE problem.  I get the NPE error
>>> whenever I use debugQuery and the query range has an asterix in it, even
>>> tho the query itself should work.  For example:
>>>
>>> These work ok:
>>>
>>> http://127.0.0.1:8994/solr/select?q=myfield:[* TO 1]
>>> http://127.0.0.1:8994/solr/select?q=myfield:[1 TO *]
>>> http://127.0.0.1:8994/solr/select?q=myfield:[1 TO 1000]
>>> http://127.0.0.1:8994/solr/select?q=myfield:[1 TO 1000]&debugQuery=true
>>>
>>> These do not work ok:
>>>
>>> http://127.0.0.1:8994/solr/select?q=myfield:[* TO 1]&debugQuery=true
>>> http://127.0.0.1:8994/solr/select?q=myfield:[1 TO *]&debugQuery=true
>>> http://127.0.0.1:8994/solr/select?q=myfield:*
>>> http://127.0.0.1:8994/solr/select?q=myfield:*&debugQuery=true
>>>
>>> Not sure if the * gets translated somewhere into a null value parameter
>>> (I
>>> am just starting to look at the solr code) per your comment
>>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/how-can-I-use-debugQuery-if-I-have-extended-QParserPlugin--tp25789546p25930610.html
>> Sent from the Solr - User mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://www.nabble.com/how-can-I-use-debugQuery-if-I-have-extended-QParserPlugin--tp25789546p25932460.html
Sent from the Solr - User mailing list archive at Nabble.com.


Mime
View raw message