Re: query filter is not working

2014-03-13 Thread Subhadip Bagui
Hi David, I have done following steps u suggested. The exact string search is working now. But when I'm trying the below query for string matching it's giving null result. May this is very basic and I'm doing something wrong. I'm a week old on elasticsearch and trying to understand the

Re: query filter is not working

2014-03-13 Thread Subhadip Bagui
Hi David, I have done following steps u suggested. The string search is working now. But for filter I have to always pass strings in lowercase; where as for query text search I can give the proper string sequence inserted in doc. query shown below. May be this is very basic and I'm doing

Re: query filter is not working

2014-03-13 Thread David Pilato
message field has been analyzed using standard analyzer. It means that you message content has been indexed using lowercase. a Term Filter does not analyze your query. DEBUG is than debug. If you want to find your term in the inverted index, you have either to analyze your query (matchQuery

Re: query filter is not working

2014-03-12 Thread Subhadip Bagui
Hi Binh, The query you given is working. Thanks for your help. But if I change the query and search for string requestproxyauthentication instead, It's not working. Below is the mapping for message field. I'm trying to understand how elasticsearch analyze the field data. Pls comment.

Re: query filter is not working

2014-03-12 Thread David Pilato
Didn't you read my previous answer? This example has nothing in common with your data! That said, you need to apply the mapping before indexing any document! We can't help you without a full curl recreation which actually reproduce your issue. I think you are doing something wrong here but it's

Re: query filter is not working

2014-03-12 Thread Subhadip Bagui
Hi David, The data is coming through logstash and taking default mapping in elasticsearch. Can I do update mapping for that index id ? Pls let me know. -- You received this message because you are subscribed to the Google Groups elasticsearch group. To unsubscribe from this group and stop

Re: query filter is not working

2014-03-11 Thread Subhadip Bagui
Hi David, Trying to query as following, but still getting null result. Please suggest. { query: { constant_score: { filter: { term: { message: requestproxyauthentication } } } } } -Subhadip -- You received this message because

Re: query filter is not working

2014-03-11 Thread David Pilato
what is your mapping? --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 11 mars 2014 à 11:03:00, Subhadip Bagui (i.ba...@gmail.com) a écrit: Hi David, Trying to query as following, but still getting null result. Please suggest. {     query: {        

Re: query filter is not working

2014-03-11 Thread Subhadip Bagui
mapping... { - movies:{ - mappings:{ - movie:{ - properties:{ - director:{ - type:string, - fields:{ - original:{ - type:string, -

Re: query filter is not working

2014-03-11 Thread Subhadip Bagui
mapping...default { - logstash-2014.03.03:{ - mappings:{ - apache-access:{ - dynamic_templates:[ - { - string_fields:{ - mapping:{ - type:multi_field, - fields:{

Re: query filter is not working

2014-03-11 Thread David Pilato
This example has nothing in common with your data! That said, you need to apply the mapping before indexing any document! --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 11 mars 2014 à 14:47:34, Subhadip Bagui (i.ba...@gmail.com) a écrit: Hi David,