lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Itamar Syn-Hershko <ita...@code972.com>
Subject Re: MultiFieldQueryParser
Date Sat, 16 Oct 2010 18:38:17 GMT
  Perhaps you met this issue which I have already reported?

https://issues.apache.org/jira/browse/LUCENE-2518

Itamar.

On 14/10/2010 3:40 AM, Erick Erickson wrote:
> I'm not quite sure what you mean by "run a query against multiple fields".
> But would
> creating your own BooleanQuery where each clause was the parsed result
> against
> a specific field work?
>
> If this is irrelevant, could you give a couple of examples of what you're
> looking to
> accomplish?
>
> Best
> Erick
>
> On Wed, Oct 13, 2010 at 9:04 PM, Lev Bronshtein
> <lev_bronshtein@hotmail.com>wrote:
>
>> Hi Group,
>>
>> I have an isue when using MultiFieldQueryParser, I would like to use one
>> query against a number of fields however I get an
>> java.lang.IllegalArgumentException: queries.length != fields.length
>>
>> Looked at the javadoc, and it looks like the only way to run one query
>> against multiple fields is to define flags for every field
>> See http://lucene.apache.org/java/3_0_2/api/all/index.html, the very last
>> parse method.  All I really want to do is just run a query against multiple
>> fields, is there a simple way?
>>
>> Regards,
>>
>> Lev Bronshtein
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message