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 <[EMAIL PROTECTED]> wrote:

Thanks Mathieu
you mean use a query like "all:test" using QueryParser?


On 7/14/07, Mathieu Lecarme < [EMAIL PROTECTED]> 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: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to