Issue with multi_match type "cross_fields"

2015-01-05 Thread Anoop P R
Is multi_match "cross_fields" works in Elastic search version 1.0.1? 
If not is there is any alternative solution for implementing this?

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/05dcf92b-ac74-4091-a6d1-597aa8afcb3d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Have an issue with match query

2015-01-02 Thread Anoop P R
Please find the attached doc for the mapping, index and query we use 
currently.  

On Friday, January 2, 2015 2:10:00 PM UTC+5:30, David Pilato wrote:
>
> Do you have a doc which contains all terms?
>
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 2 janv. 2015 à 06:21, Anoop P R > 
> a écrit :
>
> Here is the mapping
>
> {
> "demo_local": {
> "mappings": {
> "tradesman": {
> "properties": {
> "account_status": {
> "type": "boolean"
> },
> "business_name": {
> "type": "string"
> },
> "business_name_sort": {
> "type": "string"
> },
> "categories": {
> "type": "string"
> },
> "general_desc": {
> "type": "string"
> },
> "keywords": {
> "type": "string"
> },
> "long_descriptions": {
> "type": "string"
> },
> "member_id": {
> "type": "string"
> },
> "pin": {
> "properties": {
> "location": {
> "type": "geo_point"
> }
> }
> },
> "professionalism_rank": {
> "type": "long"
> },
> "punctuality_rank": {
> "type": "long"
> },
> "recommend_rank": {
> "type": "long"
> },
> "service_location": {
> "type": "long"
> },
> "service_titles": {
> "type": "string"
> },
> "state": {
>         "type": "boolean"
> },
> "status": {
> "type": "long"
> },
> "unique_name": {
> "type": "string"
> },
> "value_rank": {
> "type": "long"
> }
> }
> }
> }
> }
> }
>
> On Thursday, January 1, 2015 5:51:08 PM UTC+5:30, David Pilato wrote:
>>
>> Well. Hard to say without seeing your mapping and a full reproduction...
>>
>> --
>> David ;-)
>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>
>> Le 1 janv. 2015 à 12:40, Anoop P R  a écrit :
>>
>> David,
>>
>> Its not work for me! 
>>
>> Is it possible to split the keyword with whitespace and search on the 
>> fields.
>>
>> Boost "0" doesn't make seance and I removed that, Thanks for the note.
>>
>>
>> On Thursday, January 1, 2015 1:14:53 PM UTC+5:30, David Pilato wrote:
>>>
>>> I guess it's caused by:
>>>
>>>   "type": "phrase_prefix"
>>>
>>> Just a note: why searching with a boost=0?
>>>
>>> --
>>> David ;-)
>>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>>
>>> Le 1 janv. 2015 à 08:30, Anoop P R  a écrit :
>>>
>>> Hi,
>>>
>>>
>>> We have an issue with the match query of elastic search implementation.
>>>
>>> Our index for categories field is as below.
>>>
>>> "categories": [
>>> "DJ’s",
>>> "Entertainment Entertainment Entertainment 
>>

Re: Have an issue with match query

2015-01-01 Thread Anoop P R
Here is the mapping

{
"demo_local": {
"mappings": {
"tradesman": {
"properties": {
"account_status": {
"type": "boolean"
},
"business_name": {
"type": "string"
},
"business_name_sort": {
"type": "string"
},
"categories": {
"type": "string"
},
"general_desc": {
"type": "string"
},
"keywords": {
"type": "string"
},
"long_descriptions": {
"type": "string"
},
"member_id": {
"type": "string"
},
"pin": {
"properties": {
"location": {
"type": "geo_point"
}
}
},
"professionalism_rank": {
"type": "long"
},
"punctuality_rank": {
"type": "long"
},
"recommend_rank": {
"type": "long"
},
"service_location": {
"type": "long"
},
"service_titles": {
"type": "string"
},
"state": {
"type": "boolean"
},
"status": {
"type": "long"
},
"unique_name": {
"type": "string"
},
"value_rank": {
"type": "long"
}
}
}
}
}
}

On Thursday, January 1, 2015 5:51:08 PM UTC+5:30, David Pilato wrote:
>
> Well. Hard to say without seeing your mapping and a full reproduction...
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 1 janv. 2015 à 12:40, Anoop P R > 
> a écrit :
>
> David,
>
> Its not work for me! 
>
> Is it possible to split the keyword with whitespace and search on the 
> fields.
>
> Boost "0" doesn't make seance and I removed that, Thanks for the note.
>
>
> On Thursday, January 1, 2015 1:14:53 PM UTC+5:30, David Pilato wrote:
>>
>> I guess it's caused by:
>>
>>   "type": "phrase_prefix"
>>
>> Just a note: why searching with a boost=0?
>>
>> --
>> David ;-)
>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>
>> Le 1 janv. 2015 à 08:30, Anoop P R  a écrit :
>>
>> Hi,
>>
>>
>> We have an issue with the match query of elastic search implementation.
>>
>> Our index for categories field is as below.
>>
>> "categories": [
>> "DJ’s",
>> "Entertainment Entertainment Entertainment 
>> Entertai",
>> *"Allergist*",
>> "Transportation Services"
>> ],
>>
>>
>> We are getting result when searched using the following input, with "query": 
>> "allergist". Please see the query below.
>> {
>> "query": {
>> "bool": {
>> "must": [
>> {
>> "term": {
>> "status": 1
>> }
>> },
>> {
>> "term": {
>> "account_status": 1
>> }
>> }
>> ]

Re: Have an issue with match query

2015-01-01 Thread Anoop P R
David,

Its not work for me! 

Is it possible to split the keyword with whitespace and search on the 
fields.

Boost "0" doesn't make seance and I removed that, Thanks for the note.


On Thursday, January 1, 2015 1:14:53 PM UTC+5:30, David Pilato wrote:
>
> I guess it's caused by:
>
>   "type": "phrase_prefix"
>
> Just a note: why searching with a boost=0?
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 1 janv. 2015 à 08:30, Anoop P R > 
> a écrit :
>
> Hi,
>
>
> We have an issue with the match query of elastic search implementation.
>
> Our index for categories field is as below.
>
> "categories": [
> "DJ’s",
> "Entertainment Entertainment Entertainment 
> Entertai",
> *"Allergist*",
> "Transportation Services"
> ],
>
>
> We are getting result when searched using the following input, with "query": 
> "allergist". Please see the query below.
> {
> "query": {
> "bool": {
> "must": [
> {
> "term": {
> "status": 1
> }
> },
> {
> "term": {
> "account_status": 1
> }
> }
> ],
> "should": {
> "multi_match": {
>   *  "query": "allergist",*
> "fields": [
> "categories^5",
> "service_titles^4",
> "keywords^3",
> "long_descriptions^2",
> "general_desc^1",
> "business_name^0"
> ],
> "type": "phrase_prefix"
> }
> },
> "minimum_should_match": 1
> }
> },
> "sort": {
> "recommend_rank": {
> "order": "desc"
> }
> },
> "from": 0,
> "size": "10"
> }
>
> But not getting the result when using the input with "query": "holistic 
> allergist". Please see the query below.
>
> {
> "query": {
> "bool": {
> "must": [
> {
> "term": {
> "status": 1
> }
> },
> {
> "term": {
> "account_status": 1
> }
> }
> ],
> "should": {
> "multi_match": {
>   *  "query": "holistic allergist",*
> "fields": [
> "categories^5",
> "service_titles^4",
> "keywords^3",
> "long_descriptions^2",
> "general_desc^1",
> "business_name^0"
> ],
> "type": "phrase_prefix"
> }
> },
> "minimum_should_match": 1
> }
> },
> "sort": {
> "recommend_rank": {
> "order": "desc"
> }
> },
> "from": 0,
> "size": "10"
> }
>
> I would appreciate your help on solving this issue.
>
> Regards,
> Anoop.
>
> -- 
> 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 elasticsearc...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/c4e1ba5e-5374-49cd-b22b-c09c3946c091%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/c4e1ba5e-5374-49cd-b22b-c09c3946c091%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/5a5dc3a9-50e0-4060-8f96-cf13719fc5fd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Have an issue with match query

2014-12-31 Thread Anoop P R
Hi,


We have an issue with the match query of elastic search implementation.

Our index for categories field is as below.

"categories": [
"DJ’s",
"Entertainment Entertainment Entertainment 
Entertai",
*"Allergist*",
"Transportation Services"
],


We are getting result when searched using the following input, with "query": 
"allergist". Please see the query below.
{
"query": {
"bool": {
"must": [
{
"term": {
"status": 1
}
},
{
"term": {
"account_status": 1
}
}
],
"should": {
"multi_match": {
  *  "query": "allergist",*
"fields": [
"categories^5",
"service_titles^4",
"keywords^3",
"long_descriptions^2",
"general_desc^1",
"business_name^0"
],
"type": "phrase_prefix"
}
},
"minimum_should_match": 1
}
},
"sort": {
"recommend_rank": {
"order": "desc"
}
},
"from": 0,
"size": "10"
}

But not getting the result when using the input with "query": "holistic 
allergist". Please see the query below.

{
"query": {
"bool": {
"must": [
{
"term": {
"status": 1
}
},
{
"term": {
"account_status": 1
}
}
],
"should": {
"multi_match": {
  *  "query": "holistic allergist",*
"fields": [
"categories^5",
"service_titles^4",
"keywords^3",
"long_descriptions^2",
"general_desc^1",
"business_name^0"
],
"type": "phrase_prefix"
}
},
"minimum_should_match": 1
}
},
"sort": {
"recommend_rank": {
"order": "desc"
}
},
"from": 0,
"size": "10"
}

I would appreciate your help on solving this issue.

Regards,
Anoop.

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/c4e1ba5e-5374-49cd-b22b-c09c3946c091%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Have a problem to map lat long field

2014-12-16 Thread Anoop P R
Thanks David, Now its works for me.

On Tuesday, December 16, 2014 12:55:45 PM UTC+5:30, David Pilato wrote:
>
> There is no autodetection of geo_point.
> So you need to provide first a mapping before sending the first document.
>
> David
>
> Le 16 déc. 2014 à 07:47, Anoop P R > 
> a écrit :
>
> Hi, I have a problem with mapping latlong in elastic search
>
> Here is my input data to elastic search server 
>
> {
> "member_id": "8",
> "keywords": [
> "Sample 2",
> "Sample 3",
> "s",
> "sample"
> ],
> "long_descriptions": "Des",
> "general_desc": "Sample",
> "service_location": 1,
> "categories": [
> "Entertainment Entertainment Entertainment Entertai",
> "DJ’s",
> "Personal Driver",
> "Transportation Services"
> ],
>  *   "pin": {*
> *"location": {*
> *"lat": 33.8101772,*
> *"lon": -118.3520389*
> *}*
> *},*
> "status": 1,
> "state": true
> }
>
> and when I check the mapping it shows like 
>
> "member_id": {
> "type": "string"
> },
> *"pin": {*
> *"properties": {*
> *"location": {*
> *"properties": {*
> *"lat": {*
> *"type": "double"*
> *},*
> *"lon": {*
> *"type": "double"*
> *}*
> *}*
> *}*
> *}*
> },
>
> I am currently using elasticsearch v1.0.1, is this something related to 
> the installation of elasticsearch? 
>
> -- 
> 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 elasticsearc...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/084dd688-b7c8-4d31-a0bc-1ad4ecdc0be3%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/084dd688-b7c8-4d31-a0bc-1ad4ecdc0be3%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/2596df36-55a8-494b-be53-abdfc99d9a17%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Have a problem to map lat long field

2014-12-15 Thread Anoop P R
Hi, I have a problem with mapping latlong in elastic search

Here is my input data to elastic search server 

{
"member_id": "8",
"keywords": [
"Sample 2",
"Sample 3",
"s",
"sample"
],
"long_descriptions": "Des",
"general_desc": "Sample",
"service_location": 1,
"categories": [
"Entertainment Entertainment Entertainment Entertai",
"DJ’s",
"Personal Driver",
"Transportation Services"
],
 *   "pin": {*
*"location": {*
*"lat": 33.8101772,*
*"lon": -118.3520389*
*}*
*},*
"status": 1,
"state": true
}

and when I check the mapping it shows like 

"member_id": {
"type": "string"
},
*"pin": {*
*"properties": {*
*"location": {*
*"properties": {*
*"lat": {*
*"type": "double"*
*},*
*"lon": {*
*"type": "double"*
*}*
*}*
*}*
*}*
},

I am currently using elasticsearch v1.0.1, is this something related to the 
installation of elasticsearch? 

-- 
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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/084dd688-b7c8-4d31-a0bc-1ad4ecdc0be3%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.