lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Grant Ingersoll <grant.ingers...@gmail.com>
Subject Re: search through all fields
Date Sat, 14 Jul 2007 18:54:02 GMT
I think he means index all your different fields into a single field  
named "all".  Not sure what makes it special, it is just like any  
other field.

-Grant

On Jul 14, 2007, at 7:59 AM, Mohammad Norouzi wrote:

> I've just tried "all" as a special field but it doesnt work!!!  
> please take a
> look at my snippet code if I was mistaken
>
>       QueryParser parser = new QueryParser("All",getAnalyzer(1));
>       Query q = parser.parse(myQuery.getQueryString());
>
> thanks again
>
> On 7/14/07, Mohammad Norouzi <mnrz57@gmail.com> wrote:
>>
>> Thanks Mathieu
>> you mean use a query like "all:test" using QueryParser?
>>
>>
>> On 7/14/07, Mathieu Lecarme < mathieu@garambrogne.net> wrote:
>> >
>> > you can use the "all" special field, but you loose the differents
>> > boost values.
>> >
>> > M.
>> > Le 14 juil. 07 à 10:50, Mohammad Norouzi a écrit :
>> >
>> > > Hello all
>> > > is there any way to search through all the fields without using
>> > > MultiFieldQueryParser? currently I am using this parser but it
>> > > requires to
>> > > pass all fields as an array to its parse method and QueryParser
>> > > will search
>> > > through the default field if no field name is specified
>> > >
>> > > lots of thanks
>> > >
>> > > --
>> > > Regards,
>> > > Mohammad
>> > > --------------------------
>> > > see my blog: http://brainable.blogspot.com/
>> > > another in Persian: http://fekre-motefavet.blogspot.com/
>> >
>> >
>> >  
>> ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> > For additional commands, e-mail: java-user-help@lucene.apache.org
>> >
>> >
>>
>>
>> --
>> Regards,
>> Mohammad
>> --------------------------
>> see my blog: http://brainable.blogspot.com/
>> another in Persian: http://fekre-motefavet.blogspot.com/
>>
>
>
>
> -- 
> Regards,
> Mohammad
> --------------------------
> see my blog: http://brainable.blogspot.com/
> another in Persian: http://fekre-motefavet.blogspot.com/

------------------------------------------------------
Grant Ingersoll
http://www.grantingersoll.com/
http://lucene.grantingersoll.com
http://www.paperoftheweek.com/



---------------------------------------------------------------------
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