Return-Path: Delivered-To: apmail-lucene-java-user-archive@www.apache.org Received: (qmail 63309 invoked from network); 27 May 2007 13:53:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 27 May 2007 13:53:21 -0000 Received: (qmail 88320 invoked by uid 500); 27 May 2007 13:53:19 -0000 Delivered-To: apmail-lucene-java-user-archive@lucene.apache.org Received: (qmail 88276 invoked by uid 500); 27 May 2007 13:53:19 -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 88265 invoked by uid 99); 27 May 2007 13:53:19 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 May 2007 06:53:19 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy includes SPF record at spf.trusted-forwarder.org) Received: from [217.146.177.173] (HELO web27312.mail.ukl.yahoo.com) (217.146.177.173) by apache.org (qpsmtpd/0.29) with SMTP; Sun, 27 May 2007 06:53:11 -0700 Received: (qmail 22951 invoked by uid 60001); 27 May 2007 13:52:48 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.gr; h=Message-ID:X-YMail-OSG:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Jw3KPOIee83k9xFPf8uFpkJFvxny0xJ+hlDF7VX1n46Vg1JVdh50tQW8muUc6b8UObpVIOA4dpfEjxJsc7MJs2QTkZH2izolP9aGXjDJmv1KwRPFWrryKBX/ExOq0483NQIo0xXDv6cu6L8DlLVwZjC9SHJqtofVRCqhMpRxPeY= ; Message-ID: <20070527135248.22949.qmail@web27312.mail.ukl.yahoo.com> X-YMail-OSG: XWmg0PIVM1n.wmo5e1weI6FZZyqGSZvbvERSD1T0ZTplbU_NFtL6ClJ38uxDp3d.OaA5BgDKbjAW0UBrcrQpkIh2h7GVI6eXJs7yMOmMV9UI14li6E2xyS_bodQ- Received: from [83.77.55.67] by web27312.mail.ukl.yahoo.com via HTTP; Sun, 27 May 2007 14:52:47 BST Date: Sun, 27 May 2007 14:52:47 +0100 (BST) From: STEFANOS STEFANOS Subject: =?iso-8859-7?q?=C8=DD=EC=E1:=20Re:=20problem=20with=20the=20label?= To: java-user@lucene.apache.org In-Reply-To: <359a92830705270606j3e446f07m8baf7d196c034104@mail.gmail.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="0-1467350392-1180273967=:22693" Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org --0-1467350392-1180273967=:22693 Content-Type: text/plain; charset=iso-8859-7 Content-Transfer-Encoding: 8bit Yes i am checking the query .toSring().The problem is that with query such as contents:Sense:03404903 (is the number of the sense and that what i want to find is the "Sense:03404903")is that lucene returns many results that don't contain Sense:03404903". I tried also to delete the sumbol ":"(and i did the indexing from the beginning) because it used by lucene for the notation of the field label and i had as a query the contents:Sense03404903.The same problem again.I think that may be it checks only the first that is the sense and not all with the number. Finally when i tried to do it with the number only didn't return anything.So you know the reason? I am using the Simple Anamyzer in both indexing and searching. cheers, Stefanos Erick Erickson ������: First, if you haven't already, get a copy of Luke and use it to examine your index and see how your query parsed. The colon's ":" are part of the Lucene query syntax, so I have no idea what now contents:Sense:sense parses. Second, what analyzers were you using both at index and query time? Standard analyzer, for instance, lowercases the terms. Third, take the time to read over the FAQ at http://wiki.apache.org/lucene-java/LuceneFAQ Fourth: have you tried query.toString() to see what the results of the parse are? If so, please post it. Best Erick On 5/26/07, STEFANOS STEFANOS wrote: > > Hello, > > When i tried to index a sense with name Sense:(the sense) with label > contents: (contents:Sense:sense) i had a problem in the searching.Forexample when i had as a query the Sense:sense lucene didn't return anything > and when contents:Sense:sense returned many documents that they didn't > contain the sense that i had in the query. > Is it normal this?Did i do any mistake or does lucene have a > problem?I used the edition of the book in the case that is a problem of > edition. > > > cheers, > > Stefanos > > > --------------------------------- > �������������� Yahoo! > ���������� �� ���������� ���� ���� (spam); �� Yahoo! Mail �������� ��� > �������� ������ ��������� ���� ��� ����������� ��������� > http://login.yahoo.com/config/mail?.intl=gr --------------------------------- �������������� Yahoo! ���������� �� ���������� ���� ���� (spam); �� Yahoo! Mail �������� ��� �������� ������ ��������� ���� ��� ����������� ��������� http://login.yahoo.com/config/mail?.intl=gr --0-1467350392-1180273967=:22693--