A1. MultiFieldQueryParser if you want to use a parser, or BooleanQuery

A2. Keep in mind that shorter fields already get a scoring boost.  Is
this for setting boost on fields?  Any number should do, no?

Otis

--- Lukas Zapletal <[EMAIL PROTECTED]> wrote:
> Hello all!
> 
> Q1:
> Is there any easy way to search more than one field?
> I mean I have 'content', 'headlines' and 'title' fields.
> I need to search titles with best score, headlines with better score
> and
> content with normal score.
> I want to avoid these HitCollectors... If there is no easy way can
> you 
> write me
> how this can be done with HitCollectors? My code:
> 
>  query = QueryParser.parse(str, "content", analyzer);
>  Hits hits = searcher.search(query);
> 
> Q2:
> What score numbers to use with these fields?
> I mean 1.0001 for title or something else?
> 
> 
> -- 
> Lukas Zapletal
> http://www.tanecni-olomouc.cz/lzap
> [EMAIL PROTECTED]
> 
> --
> To unsubscribe, e-mail:  
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
> 


__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to