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 Pascal Nadal <Pa...@Keyword.fr> on 2003/11/12 11:55:23 UTC
Wildcard search and HOST tokens
My lucene indexes contain fields with values like this www.xxx.yyy.zzz
which are treated as HOST tokens.
My problem is the following : search results never contain documents with
such fields when doing a wildcard query or a fuzzy query. Only searches on
full field values work.
example queries: www* www.* www.xxx* www?xxx?yyy www.yyy.y~ or just yyy
I'm using Lucene 1.2 and the StandardAnalyzer. It seems that the '.' is the
problem.
Is it a bug ?
I wrote a HostFilter class which tokenizes again HOST tokens and it seems to
work fine (full field values or wildcard queries)
Re: Wildcard search and HOST tokens
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Wednesday, November 12, 2003, at 05:55 AM, Pascal Nadal wrote:
> My lucene indexes contain fields with values like this www.xxx.yyy.zzz
> which are treated as HOST tokens.
> My problem is the following : search results never contain documents
> with
> such fields when doing a wildcard query or a fuzzy query. Only
> searches on
> full field values work.
>
> example queries: www* www.* www.xxx* www?xxx?yyy www.yyy.y~ or just
> yyy
>
> I'm using Lucene 1.2 and the StandardAnalyzer. It seems that the '.'
> is the
> problem.
>
> Is it a bug ?
What does query.toString("<default field>") return? This generally has
a lot of clues on what happened in QueryParser.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: lucene-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: lucene-user-help@jakarta.apache.org