Dose filter run analyzer which is defined with the field


(Arjit Gupta) #1

Hi,

I am using search queries in my application. But now I want to use filters
(as its faster and I dont care about scoring )but I cant find a filter
which runs the analyzer in the query. Is there a filter type which can run
analyzers on the query.

I am using elasticsearch version 0.90.1.

Thanks,
Arjit

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/afcbef56-9628-498e-bd34-ebefc5bc4e66%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Justin Treher) #2

Filters do not analyze the filter text ever. They will simply take the text
in the filter and match it one to one with your tokens. So, filters match
on text analyzed during the index process, but they do no processing of the
query text itself at query time.

For example:

Index you have the lowercase token filter and index the word: EUROPE

This is stored as the token: europe

When you do a term filter, you would have to pass in the lowercase "europe"
for it to match. "Europe" would not match. "EUROPE" would not match.

On Saturday, January 4, 2014 7:44:54 AM UTC-5, Arjit Gupta wrote:

Hi,

I am using search queries in my application. But now I want to use filters
(as its faster and I dont care about scoring )but I cant find a filter
which runs the analyzer in the query. Is there a filter type which can run
analyzers on the query.

I am using elasticsearch version 0.90.1.

Thanks,
Arjit

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a5ff6077-aa22-460d-bbba-c66e03596310%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


(Arjit Gupta) #3

Thanks a lot Justin it helps :slight_smile: .

Thanks ,
Arjit

On Sat, Jan 4, 2014 at 8:24 PM, Justin Treher jtreher@gmail.com wrote:

Filters do not analyze the filter text ever. They will simply take the
text in the filter and match it one to one with your tokens. So, filters
match on text analyzed during the index process, but they do no processing
of the query text itself at query time.

For example:

Index you have the lowercase token filter and index the word: EUROPE

This is stored as the token: europe

When you do a term filter, you would have to pass in the lowercase
"europe" for it to match. "Europe" would not match. "EUROPE" would not
match.

On Saturday, January 4, 2014 7:44:54 AM UTC-5, Arjit Gupta wrote:

Hi,

I am using search queries in my application. But now I want to use
filters (as its faster and I dont care about scoring )but I cant find a
filter which runs the analyzer in the query. Is there a filter type which
can run analyzers on the query.

I am using elasticsearch version 0.90.1.

Thanks,
Arjit

--
You received this message because you are subscribed to a topic in the
Google Groups "elasticsearch" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/elasticsearch/F_0pb61GZpc/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a5ff6077-aa22-460d-bbba-c66e03596310%40googlegroups.com
.

For more options, visit https://groups.google.com/groups/opt_out.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/CADe%2BHd-XeantauXxq9oe5M1YazkOYXN_Ot26j%3D9xHSZUpkownA%40mail.gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.


(system) #4