lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Erick Erickson" <erickerick...@gmail.com>
Subject Re: About The Lucene Query Syntax
Date Mon, 15 Sep 2008 13:56:11 GMT
wildcards are NOT supported within double quotes, so if
you are submitting your query
"Technology Gunlugu*"
WITH the double quotes, you are searching for
that literal phrase.

Best
Erick

P.S. See:

http://lucene.apache.org/java/docs/queryparsersyntax.html
the first line under "wildcard searches"


2008/9/15 Fatih Soydan <idlemyth@gmail.com>

> Hi;
>
>
>
> I am trying to write an application that's working on Blackberry or other
> java enabled phones. This application talk with the server and Ask some
> questions. Server Side is c# and i am using Apache Lucene.Net in this
> Project.
>
>
>
> I searched a forum or mail list, but i didn't found yet. I have a problem
> about query syntax.
>
>
>
> I want to search this
>
> "Technology Gunlugu*" AND "NTV"
>
>
>
> But don't returns any result, Because of "technology gunlugu*".
>
> When I searched
>
> "Technology Gunlugu" AND "NTV"   returns 3 matched record
>
> "Technology Gunlugunde" AND "NTV" returns  1 matched record
>
>
>
>
>
> I debug my Project step by step.
>
>
>
> In the  Lucene.Net.Search.IndexSearcher
>
> public override Query Rewrite(Query original)
>
> {
>
> Query query = original;
>
> for (Query rewrittenQuery = query.Rewrite(reader); rewrittenQuery != query;
> rewrittenQuery = query.Rewrite(reader))
>
>       {
>
>              query = rewrittenQuery;
>
>       }
>
>       return query;
>
> }
>
>
>
> İf the query is a PrefixQuery  Gunlugu* turns to Gunlugunde OR Gunlugu
>
> But if the query is a default Query (Lucene.Net.Search.Query) "technology
> gunlugu*"  it returns null query.
>
>
>
>
>
> What can I do ?
>
>
>
> (Sorry for my bad English)
>
>
>
> FATIH SOYDAN
>
>
>
>
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message