Return-Path: Delivered-To: apmail-jakarta-lucene-user-archive@www.apache.org Received: (qmail 39512 invoked from network); 27 Aug 2004 18:06:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 27 Aug 2004 18:06:19 -0000 Received: (qmail 66157 invoked by uid 500); 27 Aug 2004 18:06:13 -0000 Delivered-To: apmail-jakarta-lucene-user-archive@jakarta.apache.org Received: (qmail 66045 invoked by uid 500); 27 Aug 2004 18:06:12 -0000 Mailing-List: contact lucene-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Lucene Users List" Reply-To: "Lucene Users List" Delivered-To: mailing list lucene-user@jakarta.apache.org Received: (qmail 66032 invoked by uid 99); 27 Aug 2004 18:06:12 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [200.61.168.200] (HELO gandalf.xlnet.net.ar) (200.61.168.200) by apache.org (qpsmtpd/0.27.1) with ESMTP; Fri, 27 Aug 2004 11:06:09 -0700 Received: from exchange.xlnet.net.ar (10.0.0.3) by gandalf.xlnet.net.ar (NPlex 5.1.036) id 412BA52000012C74 for lucene-user@jakarta.apache.org; Fri, 27 Aug 2004 15:08:27 -0300 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: complex searche (newbie) Content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft Exchange V6.5.6944.0 Date: Fri, 27 Aug 2004 15:08:22 -0300 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: complex searche (newbie) Thread-Index: AcSLkOLpPHlgDwrCRe2Tmv0VqlzrqwAz7cGg From: "Wermus Fernando" To: "Lucene Users List" X-Virus-Checked: Checked X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Thanks :) It Works :) . One more question. I need to order the hits by a field in contact called lastname. What do I have to add to the query? -----Mensaje original----- De: Bernhard Messer [mailto:Bernhard.Messer@intrafind.de]=20 Enviado el: Jueves, 26 de Agosto de 2004 02:17 p.m. Para: Lucene Users List Asunto: Re: complex searche (newbie) hi, in general the query parser doesn't allow queries which start with a=20 wildcard Those queries could end up with very long response times and=20 block your system. This is not what you want. I'm not sure if i understand what you want to do. I expect that you have a field within a lucene document with name "type". For this field you=20 can have different values like "contact,account" etc. Now you want to=20 search all documents where type is "contact". So the query to do this=20 would be "type:contact", nothing else is required. can you try that and give some feedback ? best regards Bernhard Wermus Fernando wrote: >I am using multifieldQueryParse to look up some models. I have several >models: account, contacts, tasks, etc. The user chooses models and a >query string to look up. Besides fields for searching, I add some >conditions to the query string. >=20 >If he puts "john" to look up and chooses contacts, I add to the query >string the following >=20 >Query string: "john and type:contact" >=20 >But, If he wants to look up any contact, multifieldQueryParse throws an >exception. In these case, the query string is the following: >=20 >Query string: "* and type:contact" >=20 >Am I choosing the wrong QueryParser or is there another easy way to look >up several fields and the same time any content? > > =20 > --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: lucene-user-help@jakarta.apache.org