From dev-return-72032-apmail-lucene-dev-archive=lucene.apache.org@lucene.apache.org Fri Jun 3 12:55:30 2011 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 61E4F6DE1 for ; Fri, 3 Jun 2011 12:55:30 +0000 (UTC) Received: (qmail 87568 invoked by uid 500); 3 Jun 2011 12:55:28 -0000 Delivered-To: apmail-lucene-dev-archive@lucene.apache.org Received: (qmail 87493 invoked by uid 500); 3 Jun 2011 12:55:28 -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 87486 invoked by uid 99); 3 Jun 2011 12:55:28 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 12:55:28 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 03 Jun 2011 12:55:27 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7B46BF21AC for ; Fri, 3 Jun 2011 12:54:47 +0000 (UTC) Date: Fri, 3 Jun 2011 12:54:47 +0000 (UTC) From: "Robert Muir (JIRA)" To: dev@lucene.apache.org Message-ID: <1614412631.65626.1307105687501.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (SOLR-1980) Implement boundary match support MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SOLR-1980?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D13043= 338#comment-13043338 ]=20 Robert Muir commented on SOLR-1980: ----------------------------------- well its fine if you are doing matching on something really short, you coul= d index with keywordtokenizer and use this for some use cases. > Implement boundary match support > -------------------------------- > > Key: SOLR-1980 > URL: https://issues.apache.org/jira/browse/SOLR-1980 > Project: Solr > Issue Type: New Feature > Components: Schema and Analysis > Reporter: Jan H=C3=B8ydahl > > Sometimes you need to specify that a query should match only at the start= or end of a field, or be an exact match. > Example content: > 1) a quick fox is brown > 2) quick fox is brown > Example queries: > "^quick fox" -> should only match 2) > "brown$" -> should match 1) and 2) > "^quick fox is brown$" -> should only match 2) > Proposed way of implmementation is through a new BoundaryMatchTokenFilter= which behaves like this: > On the index side it inserts special unique tokens at beginning and end o= f field. These could be some weird unicode sequence. > On the query side, it looks for the first character matching "^" or the l= ast character matching "$" and replaces them with the special tokens. -- This message is automatically generated by JIRA. 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