Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 96594 invoked from network); 4 May 2007 18:47:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 May 2007 18:47:32 -0000 Received: (qmail 90803 invoked by uid 500); 4 May 2007 18:47:31 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 90765 invoked by uid 500); 4 May 2007 18:47:31 -0000 Mailing-List: contact java-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: java-user@lucene.apache.org Delivered-To: mailing list java-user@lucene.apache.org Received: (qmail 90751 invoked by uid 99); 4 May 2007 18:47:31 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 11:47:31 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of max@artsalliancelabs.com designates 66.92.91.130 as permitted sender) Received: from [66.92.91.130] (HELO artsalliancelabs.com) (66.92.91.130) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 04 May 2007 11:47:23 -0700 X-MimeOLE: Produced By Microsoft Exchange V6.5 MIME-Version: 1.0 x-cr-puzzleid: {4BE8BC32-F4EE-4627-9D63-03A5DF0998D3} Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C78E7C.9A127F60" Content-class: urn:content-classes:message Subject: Help with Ajax-based prefix query? x-cr-hashedpuzzle: 5rE= Auky BIIV BdxT C4Ow EmW2 Eoyv FhqG GAa7 GkpU G7R/ H/L5 IOMs JGus JRMC J0o4;1;agBhAHYAYQAtAHUAcwBlAHIAQABsAHUAYwBlAG4AZQAuAGEAcABhAGMAaABlAC4AbwByAGcA;Sosha1_v1;7;{4BE8BC32-F4EE-4627-9D63-03A5DF0998D3};bQBhAHgAQABhAHIAdABzAGEAbABsAGkAYQBuAGMAZQBsAGEAYgBzAC4AYwBvAG0A;Fri, 04 May 2007 18:46:58 GMT;SABlAGwAcAAgAHcAaQB0AGgAIABBAGoAYQB4AC0AYgBhAHMAZQBkACAAcAByAGUAZgBpAHgAIABxAHUAZQByAHkAPwA= Date: Fri, 4 May 2007 14:46:58 -0400 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Help with Ajax-based prefix query? Thread-Index: AceOfJhWEvZorSfvQgCa7KLQvlt2ng== From: "Max Metral" To: X-Virus-Checked: Checked by ClamAV on apache.org ------_=_NextPart_001_01C78E7C.9A127F60 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Hi. I'm trying to design a proper index and query mechanism for looking = up a business listing using an Ajax-style autocompleting text box. = While I have gotten "versions" to work, I'm wondering what the optimal = approach is.=20 =20 Someone may be looking for "Appleton Caf=E9." That listing might be = under "Appleton Caf=E9 and Bakery", or "Appleton Bakery Caf=E9" etc etc. = When they type "apple" I want to match it (easy), and when they type = "Appleton ca" I want to match it also. I'm taking a simple attempt now, = which is just a PrefixQuery. Problem is I seem to need to Store it, = Tokenize it (KeywordAnalyzer), and store the Term Vector just to get the = PrefixQuery to work. Is this true? Since I already have the "title" = field stored using a Snowball analyzer in another field, I want the = minimum bits required to make the PrefixQuery work to be stored in the = index. =20 Thanks very much for any pointers, --Max ------_=_NextPart_001_01C78E7C.9A127F60--