Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 24114 invoked from network); 21 Oct 2007 17:06:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 21 Oct 2007 17:06:07 -0000 Received: (qmail 89172 invoked by uid 500); 21 Oct 2007 17:05:50 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 89143 invoked by uid 500); 21 Oct 2007 17:05:49 -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 89132 invoked by uid 99); 21 Oct 2007 17:05:49 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2007 10:05:49 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [62.213.161.134] (HELO pmx.sirma.bg) (62.213.161.134) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 21 Oct 2007 17:05:52 +0000 Received: from localhost (localhost [127.0.0.1]) by pmx.sirma.bg (Sirma mail system) with ESMTP id E59722448A8 for ; Sun, 21 Oct 2007 20:05:30 +0300 (EEST) X-Virus-Scanned: amavisd-new at sirma.bg Received: from pmx.sirma.bg ([127.0.0.1]) by localhost (pmx.sirma.bg [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id at5X6rTtIbmh for ; Sun, 21 Oct 2007 20:05:30 +0300 (EEST) Received: from [192.168.128.140] (ivasilev.sirma.int [192.168.128.140]) by pmx.sirma.bg (Sirma mail system) with ESMTP id D05CB244891 for ; Sun, 21 Oct 2007 20:05:30 +0300 (EEST) Message-ID: <471B86DA.6000807@sirma.bg> Date: Sun, 21 Oct 2007 20:05:30 +0300 From: Ivan Vasilev User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: LUCENE MAIL LIST Subject: How to change Collators per field when querying? Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi Guys, We have implemented per field setting of Analyzers, based on the language that is used for the responding field. Example: field FileName is in English, field Content in Chinese. This we do by creating our class that implements Analyzer and wraps two analyzers StandardAnalyzer and CJKAnalyzer and in the method tokenStream(String fieldName, Reader reader) does the real tokenization with proper analyzer based on the field name. So my question is: What is the best practice Lucene approach to change the Collator object in the same manner per field during the searching process, when sorting the results? Best Regards, Ivan --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org For additional commands, e-mail: java-user-help@lucene.apache.org