Home | About | Sematext search-lucene.com search-hadoop.com
 Search Lucene and all its subprojects:

Switch to Threaded View
Solr, mail # user - filter query parsing problem


Copy link to this message
-
Re: filter query parsing problem
Ahmet Arslan 2010-01-18, 21:40
> I am submitting a query and it seems
> to be parsing incorrectly.  Here
> is the query with the debug output.  Any ideas what
> the problem is:
>
> <arr name="filter_queries">
>   <str>
>     ((VLog:814124 || VLog:12342) &&
> (PublisherType:U || PublisherType:A))
>   </str>
> </arr>
> <arr name="parsed_filter_queries">
>     <str>+(VLog:814124 VLog:12342)
> +PublisherType:u</str>
> </arr>
>
> I would have thought that the parsed filter would have
> looked like this:
>         <str>+(VLog:814124
> VLog:12342) +(PublisherType:u PublisherType:a)</str>

It seems that stopfilterfactory is eating A which is a stop word. You can remove stopfilterfactory from analyzer chain of type of PublisherType. Or you can remove entry a from stopwords.txt.