You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by STEFANOS STEFANOS <st...@yahoo.gr> on 2007/05/27 04:08:31 UTC

problem with the label

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.For example 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 

Θέμα: Re: problem with the label

Posted by STEFANOS STEFANOS <st...@yahoo.gr>.
    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 <er...@gmail.com> έγραψε:
  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 

Re: problem with the label

Posted by Erick Erickson <er...@gmail.com>.
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 <st...@yahoo.gr> 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