Return-Path: X-Original-To: apmail-lucene-dev-archive@www.apache.org Delivered-To: apmail-lucene-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 58C12D5A7 for ; Fri, 19 Oct 2012 10:52:16 +0000 (UTC) Received: (qmail 17508 invoked by uid 500); 19 Oct 2012 10:52:15 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 16974 invoked by uid 500); 19 Oct 2012 10:52:13 -0000 Mailing-List: contact dev-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@lucene.apache.org Delivered-To: mailing list dev@lucene.apache.org Received: (qmail 16926 invoked by uid 99); 19 Oct 2012 10:52:12 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2012 10:52:12 +0000 Date: Fri, 19 Oct 2012 10:52:11 +0000 (UTC) From: "Simon Willnauer (JIRA)" To: dev@lucene.apache.org Message-ID: <1185877524.391.1350643931958.JavaMail.jiratomcat@arcas> In-Reply-To: <1843375243.160.1350638772065.JavaMail.jiratomcat@arcas> Subject: [jira] [Updated] (LUCENE-4491) Make analyzing suggester more flexible MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/LUCENE-4491?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Simon Willnauer updated LUCENE-4491: ------------------------------------ Attachment: LUCENE-4491.patch next iteration. I remove the surfaceForm getter from TermFreqIter and added Attribute support to the it instead. Now we also have a SurfaceFromAttribute in the o.a.l.suggest.analyzing package that is respected by the AnalyzingSuggester. This looks much cleaner now. > Make analyzing suggester more flexible > -------------------------------------- > > Key: LUCENE-4491 > URL: https://issues.apache.org/jira/browse/LUCENE-4491 > Project: Lucene - Core > Issue Type: Improvement > Components: modules/other > Affects Versions: 4.1 > Reporter: Simon Willnauer > Assignee: Simon Willnauer > Fix For: 4.1, 5.0 > > Attachments: LUCENE-4491.patch, LUCENE-4491.patch > > > Today we have a analyzing suggester that is bound to a single key. Yet, if you want to have a totally different surface form compared to the key used to find the suggestion you either have to copy the code or play some super ugly analyzer tricks. For example I want to suggest "Barbar Streisand" if somebody types "strei" in that case the surface form is totally different from the analyzed form. > Even one step further I want to embed some meta-data in the suggested key like a user id or some type my surface form could look like "Barbar Streisand|15". Ideally I want to encode this as binary and that might not be a valid UTF-8 byte sequence. > I'm actually doing this in production and my only option was to copy the analyzing suggester and some of it's related classes. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org For additional commands, e-mail: dev-help@lucene.apache.org