From java-user-return-50699-apmail-lucene-java-user-archive=lucene.apache.org@lucene.apache.org Sun Sep 4 14:00:58 2011 Return-Path: X-Original-To: apmail-lucene-java-user-archive@www.apache.org Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60A5777B9 for ; Sun, 4 Sep 2011 14:00:58 +0000 (UTC) Received: (qmail 50246 invoked by uid 500); 4 Sep 2011 14:00:55 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 50150 invoked by uid 500); 4 Sep 2011 14:00:54 -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 50142 invoked by uid 99); 4 Sep 2011 14:00:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2011 14:00:54 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of saarcarmi@gmail.com designates 74.125.83.48 as permitted sender) Received: from [74.125.83.48] (HELO mail-gw0-f48.google.com) (74.125.83.48) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Sep 2011 14:00:48 +0000 Received: by gwj22 with SMTP id 22so3260595gwj.35 for ; Sun, 04 Sep 2011 07:00:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=IKbxyx5wuEvxkNVBwnEX3P0jt7Gbw9IPg4kgdmgjBok=; b=ErxPLyOsme0hugXVkZKRj6DUXPCc/+Z0d9yp/HzqSqUiT8IRZxjocN0tZYPsm5krwN KslvgxHLVC6yOX47HEQvFABFgxwb89/VnJLxEggmoZ9JtqBm8J1/zV6uhWbn+8kFlZZX XSrJwf9NaW3fMXTmXgRF7N/OZJX+OvqvzalwA= Received: by 10.150.56.15 with SMTP id e15mr2431143yba.180.1315144828135; Sun, 04 Sep 2011 07:00:28 -0700 (PDT) MIME-Version: 1.0 Received: by 10.150.57.7 with HTTP; Sun, 4 Sep 2011 07:00:08 -0700 (PDT) In-Reply-To: <8784AFB3E5688C4C9B2BFB450D2CB02820B497C080@GZSMSCCR01.sms1.local> References: <8784AFB3E5688C4C9B2BFB450D2CB02820B497C080@GZSMSCCR01.sms1.local> From: Saar Carmi Date: Sun, 4 Sep 2011 17:00:08 +0300 Message-ID: Subject: Re: Custom tokens creation in Lucene/Solr To: java-user@lucene.apache.org Content-Type: multipart/alternative; boundary=000e0cd61a444f288a04ac1e04da --000e0cd61a444f288a04ac1e04da Content-Type: text/plain; charset=ISO-8859-1 Have you tried to look at Payloads ? Saar On Sun, Sep 4, 2011 at 10:45 AM, Lior Barnea wrote: > Hi all, > > I want to add user created tokens to a text field at index time, I want to > pass some metadata to a custom filter I wrote that adds tokens to the > tokenstream. > > I tried to add the metadata to the text and strip it with a custom > tokenizer but I didn't find a good way to pass it to my filter (which has to > run last, cause I don't want and other filters working on my custom tokens). > > (Working with Lucene 3.0.3 / Solr 3.3.0) > > Any ideas ? > > Best regards, > Lior Barnea, > 3i-MIND. > --000e0cd61a444f288a04ac1e04da--