lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dmitry Kan <solrexp...@gmail.com>
Subject Re: weird exception on update
Date Tue, 04 Feb 2014 09:39:41 GMT
We are still hitting an issue with two cores, each having their own custom
query parser.

The problem in passing {!qparser} is that the custom query parser can
pretty much alter an input query into something that is not desirable for
the delete by query operation.

Is there any way of specifying explicitly lucene's query parser for the
delete by query? If no query parser is specified in such a config we get an
error:

<?xml version="1.0" encoding="UTF-8"?>
<response>
<lst name="responseHeader"><int name="status">400</int><int
name="QTime">34</int></lst><lst name="error"><str name="msg">Unknown
query
parser 'lucene'</str><int name="code">400</int></lst>
</response>

Any ideas are welcome.

Dmitry


On Mon, Feb 3, 2014 at 4:49 PM, Dmitry Kan <solrexpert@gmail.com> wrote:

> The solution (or workaround?) is to drop the defType from one of the cores
> and use {!qparser} local param on every query, including the delete by
> query. It would be really great, if this could be handled on the solr
> config side only without involving the client changes.
>
>
>
>
> On Mon, Feb 3, 2014 at 4:02 PM, Dmitry Kan <solrexpert@gmail.com> wrote:
>
>> This exception is similar to what is talked about here:
>> https://gist.github.com/mbklein/6367133
>> http://irc.projecthydra.org/2013-08-28.html
>>
>> We found out that:
>>
>> 1. this happens iff on two cores inside the same container there is a
>> query parser defined via defType.
>> 2. After removing index files on one of the cores, the delete by query
>> works just fine. Right after restarting the container, the same query fails.
>>
>>
>> Is there a jira for this? Should I create one?
>>
>> Dmitry
>>
>>
>> On Mon, Feb 3, 2014 at 2:03 PM, Dmitry Kan <solrexpert@gmail.com> wrote:
>>
>>> Hello!
>>>
>>> We are hitting a really strange and nasty issue when trying to delete by
>>> query and not when just adding documents. The exception says:
>>> http://pastebin.com/B1x5dAF7
>>>
>>> Any ideas as to what is going on?
>>>
>>> The delete by query is referencing the unique field. The core's index
>>> does not contain the value that is being deleted.
>>> Solr: 4.3.1.
>>>
>>>
>>> --
>>> Dmitry
>>> Blog: http://dmitrykan.blogspot.com
>>> Twitter: twitter.com/dmitrykan
>>>
>>
>>
>>
>> --
>> Dmitry
>> Blog: http://dmitrykan.blogspot.com
>> Twitter: twitter.com/dmitrykan
>>
>
>
>
> --
> Dmitry
> Blog: http://dmitrykan.blogspot.com
> Twitter: twitter.com/dmitrykan
>



-- 
Dmitry
Blog: http://dmitrykan.blogspot.com
Twitter: twitter.com/dmitrykan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message