Return-Path: X-Original-To: apmail-lucene-lucene-net-user-archive@www.apache.org Delivered-To: apmail-lucene-lucene-net-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 387CC7A82 for ; Tue, 6 Sep 2011 10:07:46 +0000 (UTC) Received: (qmail 50616 invoked by uid 500); 6 Sep 2011 10:07:44 -0000 Delivered-To: apmail-lucene-lucene-net-user-archive@lucene.apache.org Received: (qmail 48954 invoked by uid 500); 6 Sep 2011 10:07:26 -0000 Mailing-List: contact lucene-net-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: lucene-net-user@lucene.apache.org Delivered-To: mailing list lucene-net-user@lucene.apache.org Received: (qmail 47437 invoked by uid 99); 6 Sep 2011 10:07:16 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 10:07:16 +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 (nike.apache.org: domain of floyd.wu@gmail.com designates 209.85.213.176 as permitted sender) Received: from [209.85.213.176] (HELO mail-yx0-f176.google.com) (209.85.213.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Sep 2011 10:07:09 +0000 Received: by yxp4 with SMTP id 4so3609978yxp.35 for ; Tue, 06 Sep 2011 03:06:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=4DWiu4LTrFkCI42MN39Hdupow0bZdyUeX8fdXRH5VrU=; b=tmpTHmgqvSSV2CE7ed5Tin5FnaHWXRnRw3YaR4Lgg0H0sgSMfFi7PbXH0BzOcW2zNu PXE+0gaTvWET1FKm6GpXlC+FKhhKd8b8UZlIjtWaBXRHsYGx1XbC43lxB7CV3N9soIaC gJ9utMUxteKi5Cc4zIbFglv0KrhPDfUHbFw7I= MIME-Version: 1.0 Received: by 10.43.133.133 with SMTP id hy5mr4559010icc.82.1315303608579; Tue, 06 Sep 2011 03:06:48 -0700 (PDT) Received: by 10.42.97.195 with HTTP; Tue, 6 Sep 2011 03:06:48 -0700 (PDT) In-Reply-To: References: Date: Tue, 6 Sep 2011 18:06:48 +0800 Message-ID: From: Floyd Wu To: lucene-net-user@lucene.apache.org Content-Type: multipart/alternative; boundary=20cf307f385e5c764004ac42fcd5 X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [Lucene.Net] How to index/search a file name --20cf307f385e5c764004ac42fcd5 Content-Type: text/plain; charset=ISO-8859-1 Hi Digy, Many thanks. I try this later. By the way, do you recommend to upgrade to 2.9.4g or stay in 2.9.3? I've been use 2.9.3 for long time and seems to no big problem. Floyd 2011/9/6 digy digy > - Just copy and paste to your project :) and use it instead of > StandardAnalyzer . > - Yes, it is from 2.9.4. > > DIGY > > On Tue, Sep 6, 2011 at 12:47 PM, Floyd Wu wrote: > > > Hi Digy, > > > > Thank you. But how to apply this to my current project? Is this > compitable > > with lucene.net-2.9.x? > > > > Floyd > > > > > > 2011/9/6 digy digy > > > > > That may help > > > > > > UnaccentedWordAnalyzer @ > > > > > > > > > https://svn.apache.org/repos/asf/incubator/lucene.net/trunk/src/contrib/Core/Analysis/Ext/Analysis.Ext.cs > > > > > > > > > DIGY > > > > > > On Tue, Sep 6, 2011 at 12:31 PM, Floyd Wu wrote: > > > > > > > Hi everyone, > > > > > > > > I have a question that annoying me many times. my situation is that I > > > need > > > > to index file name and need to be searchable using partial file name. > > > > > > > > example--> 2009&2010Q2_ABCD_Report.xls (the file name) > > > > > > > > When I shot queries > > > > > > > > filename:ABCD no match return. > > > > > > > > filename:2010Q2_ABCD match > > > > > > > > filename:Report* match > > > > > > > > I'm using StandardAnalyzer and Lucene.Net version is 2.9.3. Current > > > > filename > > > > field is set to tokenized/indexed/store > > > > > > > > What I want is when user type any part of file name that lucene.Net > can > > > > match. > > > > (string like 2009 or 2010Q2 or ABCD or Report or xls or Report.xls) > > > > > > > > Please help on this or kindly direct me a way to solve it. > > > > > > > > Floyd > > > > > > > > > > --20cf307f385e5c764004ac42fcd5--