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: Indexing puncuation and symbols
Date Mon, 01 Oct 2007 21:43:12 GMT
You might be able to create an analyzer that breaks your
stream up (from the example) into tokens
"foo" and "," and then (using the same analyzer)
search on phrases with a slop of 0. That seems like
it'd do what you want.....

Best
Erick

On 10/1/07, Patrick Turcotte <patrek@gmail.com> wrote:
>
> Of course, it depends on the kind of query you are doing, but (I did
> find the query parser in the mean time)
>
> MultiFieldQueryParser mfqp = new MultiFieldQueryParser(useFields,
> analyzer, boosts);
> where analyzer can be a PerFieldAnalyzer
> followed by
> Query query = mfqp.parse(queryString);
> would do the trick quite simply.
>
> Patrick
>
> On 10/1/07, John Byrne <john.byrne@propylon.com> wrote:
> > Well, the size wouldn't be a problem, we could afford the extra field.
> > But it would seem to complicate the search quite a lot. I'd have to run
> > the search terms through both analyzers. It would be much simpler if the
> > characters were indexed as separate tokens.
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message