I have an analyzer using a path hierarchy tokenizer that I use on a
particular field. This works fine, but sometimes I want to do an
exact-match on the field. I can't quite work out how to get this working
though.
On Friday, 14 June 2013 08:05:09 UTC+2, Allan Johns wrote:
Is this possible?
I have an analyzer using a path hierarchy tokenizer that I use on a
particular field. This works fine, but sometimes I want to do an
exact-match on the field. I can't quite work out how to get this working
though.
One field and use an analyzer with a path hierarchy tokenizer and another
field can be non-analyzed. The term filter should be used on non-analyzed
fields (or with analyzers that only produce one token (lowercase,
ascii-folding, etc..).
On Friday, 14 June 2013 08:05:09 UTC+2, Allan Johns wrote:
Is this possible?
I have an analyzer using a path hierarchy tokenizer that I use on a
particular field. This works fine, but sometimes I want to do an
exact-match on the field. I can't quite work out how to get this working
though.
Wait so I shouldn't be using a term filter in the first place? Now I'm
confused, I didn't think you had to be concerned about the analyzer in use
when using a term filter. What should I be using instead?
@Erik: Let's say I have a field value folder="/foo/bah/eek". Using a term
filter works fine and returns this document when I ask for "/foo",
"/foo/bah" or "/foo/bah/eek", which is what I want. However in one case, I
don't want this behaviour, I want an exact match instead.
On Sat, Jun 15, 2013 at 5:37 AM, Ivan Brusic ivan@brusic.com wrote:
One field and use an analyzer with a path hierarchy tokenizer and another
field can be non-analyzed. The term filter should be used on non-analyzed
fields (or with analyzers that only produce one token (lowercase,
ascii-folding, etc..).
On Friday, 14 June 2013 08:05:09 UTC+2, Allan Johns wrote:
Is this possible?
I have an analyzer using a path hierarchy tokenizer that I use on a
particular field. This works fine, but sometimes I want to do an
exact-match on the field. I can't quite work out how to get this working
though.
Wait so I shouldn't be using a term filter in the first place? Now I'm
confused, I didn't think you had to be concerned about the analyzer in use
when using a term filter. What should I be using instead?
@Erik: Let's say I have a field value folder="/foo/bah/eek". Using a term
filter works fine and returns this document when I ask for "/foo",
"/foo/bah" or "/foo/bah/eek", which is what I want. However in one case, I
don't want this behaviour, I want an exact match instead.
On Sat, Jun 15, 2013 at 5:37 AM, Ivan Brusic ivan@brusic.com wrote:
One field and use an analyzer with a path hierarchy tokenizer and another
field can be non-analyzed. The term filter should be used on non-analyzed
fields (or with analyzers that only produce one token (lowercase,
ascii-folding, etc..).
On Friday, 14 June 2013 08:05:09 UTC+2, Allan Johns wrote:
Is this possible?
I have an analyzer using a path hierarchy tokenizer that I use on a
particular field. This works fine, but sometimes I want to do an
exact-match on the field. I can't quite work out how to get this working
though.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.