Re: how to search multiple fields

2011-05-25 Thread Ian Lea
> In the first link you presented, there is one comment that "Note that terms > which occur in short fields have a higher effect on the result ranking." > > What does "short fields" mean? This is a short sentence. This is a somewhat longer sentence that may get lower scores when matched by terms

Re: how to search multiple fields

2011-05-25 Thread Cheng Zhou
Hi lan, thanks. Still two questions. In the first link you presented, there is one comment that "Note that terms which occur in short fields have a higher effect on the result ranking." What does "short fields" mean? What are the differences between the impact of the short fields and that of the

Re: how to search multiple fields

2011-05-25 Thread Ian Lea
> Quite a few Lucene examples on lines shows how to insert multiple fields > into a Document and how to query the indexed file with certain fields and > queried text. I would like to know: > > 1.       How to do a cross-field search? http://wiki.apache.org/lucene-java/LuceneFAQ#How_can_I_search_ov

how to search multiple fields

2011-05-25 Thread zhoucheng2008
Hi, Quite a few Lucene examples on lines shows how to insert multiple fields into a Document and how to query the indexed file with certain fields and queried text. I would like to know: 1. How to do a cross-field search? 2. How to specify some key fields as well as some less i

RE: How to search multiple fields using multiple search terms

2010-04-15 Thread Andy
I am just getting started with Lucene so I didnt know you could just use a regular query parser. That seems to work. Thanks > Date: Thu, 15 Apr 2010 19:32:50 -0400 > Subject: Re: How to search multiple fields using multiple search terms > From: erickerick...@gmail.com > T

Re: How to search multiple fields using multiple search terms

2010-04-15 Thread Erick Erickson
Why are you locked into using MultiFieldQueryParser? The simpler approach is just send something like +title:abc +desc:123 through the regular query parser HTH Erick On Thu, Apr 15, 2010 at 6:34 PM, Andy wrote: > > Hi, I am trying to use the MultiFieldQueryParser to search "title" and > "de

How to search multiple fields using multiple search terms

2010-04-15 Thread Andy
Hi, I am trying to use the MultiFieldQueryParser to search "title" and "desc" fields. However the Lucene API appears to only let me provide a single search term. Is it possible to use multiple search terms (one for each field)? For example, the SQL equivalent would be: select * from luce