lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Doug Cutting <cutt...@apache.org>
Subject Re: Reverting QueryParser ?
Date Thu, 14 Apr 2005 16:31:31 GMT
Paul Libbrecht wrote:
> I am currently evaluating the need for an elaborate query data-structure 
> (to be exchanged over XML-RPC) as opposed to working with plain strings.

I'd opt for both.  For example:

<search>
   <boolean-query>
     <required>
       <query-parser analyzer="...">"java based" -coffee</query-parser>
     <required>
       <term-query>
         <field>site</field>
         <text>apache.org</text>
       </term-query>
   </boolean-query>
   <range-filter>
     <field>date</field>
     <start>2004</start>
     <end>2006</end>
   </range-filter>
   <sort>
     <field>date</field>
   </sort>
</search>

This would be a natural thing to generate, e.g., from an "advanced 
search" page.

Doug

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