Return-Path: X-Original-To: apmail-lucene-general-archive@www.apache.org Delivered-To: apmail-lucene-general-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B71FF3CAC for ; Wed, 4 May 2011 23:14:30 +0000 (UTC) Received: (qmail 89101 invoked by uid 500); 4 May 2011 23:14:30 -0000 Delivered-To: apmail-lucene-general-archive@lucene.apache.org Received: (qmail 89054 invoked by uid 500); 4 May 2011 23:14:30 -0000 Mailing-List: contact general-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: general@lucene.apache.org Delivered-To: mailing list general@lucene.apache.org Delivered-To: moderator for general@lucene.apache.org Received: (qmail 75681 invoked by uid 99); 4 May 2011 23:04:52 -0000 X-ASF-Spam-Status: No, hits=2.0 required=5.0 tests=SPF_NEUTRAL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Date: Wed, 4 May 2011 16:04:26 -0700 (PDT) From: brandyn To: general@lucene.apache.org Message-ID: <1304550266616-2901365.post@n3.nabble.com> Subject: autocomplete with Solr using TermComponent MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Hi. I need an autocomplete solution to handle case-insensitive queries but return the original text with the case still intact. I've experimented with both the Suggester and TermComponent methods. TermComponent is working when I use the regex option, however, it is far to slow. I get the speed i want by using term.prefix for by using the suggester but it's case sensitive. Here is an example: Query: bran Results: Branden, Brandon, Brandy, Brian, ... A solution that I would expect to work would be to store two fields; one containing the original text and the other containing the lowercase. Then convert the query to lower case and run the query against the lower case field and return the original (case preserved) field. Unfortunately, I can't get a TermComponent query to return additional fields. It only returns the field it's searching against. Should this work or can I only return additional fields for standard queries. Thanks in advance. -- View this message in context: http://lucene.472066.n3.nabble.com/autocomplete-with-Solr-using-TermComponent-tp2901365p2901365.html Sent from the Lucene - General mailing list archive at Nabble.com.