Re: Elastic Search - Custom Field Mapping

2015-05-09 Thread buddarapu nagaraju
hi Carvalho,

I am trying to create a new field mapping not changing it


Regards
Nagaraju
908 517 6981

On Sat, May 9, 2015 at 7:53 PM, André Carvalho  wrote:

> Hi,
>
> Its not possible to change the mappings after the index is created. You
> will need to recreate the index and set the mappings accordingly.
>
>
> André Carvalho
> ===
> +55 21 98739-1097 / br.linkedin.com/in/andrestc/
>
>
> 2015-05-08 23:42 GMT-03:00 bvnrwork :
>
>> Hi ,
>>
>> Am trying to implement the custom field mapping for the fields that are
>> created after index creation
>>
>>
>> My use case is  that my document has some standard fields and custom
>> fields
>>
>> Standard fields are well know during index creation
>>
>> Custom fields are the knows user creates after index creation
>>
>> So I defined document structure as follows
>>
>> Document
>> {
>>  StandardField1,
>>  StandardField2,
>> CustomFields(field name,field value)
>>
>> }
>>
>> Now am trying add field mapping for newly added field "field03" through
>> this below API
>>
>> but I get the error ={"error":"MapperParsingException[No handler for type
>> [document] declared on field [document]]","status":400}
>>
>> can some one help me or suggest a way to do this?
>>
>> PUT ../cfm01/documenttype/_mapping
>>
>> {
>>   "document": {
>> "properties": {
>>   "document": {
>> "name": "document",
>> "type": "document",
>> "customFields": {
>>   "field03": {
>> "type": "string",
>> "store": "yes"
>>   }
>> }
>>   }
>> }
>>   }
>> }
>>
>> --
>> Please update your bookmarks! We moved to https://discuss.elastic.co/
>> ---
>> 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/166e87ca-f343-477b-8654-be54b36a319b%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> Please update your bookmarks! We moved to https://discuss.elastic.co/
> ---
> 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/hCv4beO9-bY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CACigSzKbsdSQujwwu0ZesjWhzF8njQwvOV7m%3DNHXPpCN_9BO_w%40mail.gmail.com
> 
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
Please update your bookmarks! We moved to https://discuss.elastic.co/
--- 
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/CAFtuXX%2Be-%2Bwypbyi4H3QuLUegkoC9ych_Y2JNupNwsbocpz83g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Stop words and re indexing

2015-04-15 Thread buddarapu nagaraju
Thank you Vineeth

I tired creating custom analyzer and specifying the analyzer part of search
and I see it works except

for phrase search

I don't see stop words getting reflected on search

For example :

the search query "xerox america" and xerox is stop word but I am getting
documents with xerox

Is it standard behavior ?

Regarding  omitting stop words while indexing


Also I want to try  indexing to omit the stop so defined index setting as
below but I still see stop words getting indexed

Do you know any reason why

"settings": {
"index": {
  "number_of_shards": 1,
  "number_of_replicas": 0,
  "analysis": {
"analyzer": {
  "standard": {
"type": "standard"
  },
  "english": {
"type": "english"
  },
  "cjk": {
"type": "cjk"
  },
  "french": {
"type": "french"
  },
  "german": {
"type": "german"
  },
  "italian": {
"type": "italian"
  },
  "spanish": {
"type": "spanish"
  },
  "russian": {
"type": "russian"
  },
  "arabic": {
"type": "arabic"
  },
  "stopwordanalyzer": {
"stopwords": [
  "AND",
  "AN",
  "THE",
  ""
],
"type": "stop"
  }
}
  }
}
  },
  "aliases": {
"201": {}





Regards
Nagaraju
908 517 6981

On Tue, Apr 14, 2015 at 11:29 PM, vineeth mohan 
wrote:

> Hello ,
>
> You can specify the analyzer in match query
> <http://www.elastic.co/guide/en/elasticsearch/reference/1.3/query-dsl-match-query.html>
> .
> Creating the analyzer you want and mentioning the stopwords in it and
> referring it from the match query might actually work.
>
> Thanks
>Vineeth Mohan,
>Elasticsearch consultant,
>qbox.io ( Elasticsearch service provider <http://qbox.io/>)
>
>
>
> On Wed, Apr 15, 2015 at 8:42 AM, buddarapu nagaraju  > wrote:
>
>> Hey Vineeth,
>>
>> Thank you
>>
>> Is there a way I can specify the stop words only during searches .
>>
>> For example the word "AND" I want to index but I want my searches
>> consider this
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Tue, Apr 14, 2015 at 10:59 PM, vineeth mohan <
>> vm.vineethmo...@gmail.com> wrote:
>>
>>> Hello  ,
>>>
>>> I need to double check if we can change the analyzer defenition.
>>> But then even if you change it , you need to re index the whole index to
>>> make it working.
>>> Else your index would be looking bad with a set of documents analyzed
>>> differently with different set of stop words and another set analyzed
>>> differently , with different set of stop words.
>>>
>>> So my advice would be to reindex the whole index , you you badly need
>>> this.
>>>
>>> Thanks
>>>Vineeth Mohan,
>>>Elasticsearch consultant,
>>>qbox.io ( Elasticsearch service provider <http://qbox.io/>)
>>>
>>>
>>> On Wed, Apr 15, 2015 at 1:49 AM, bvnrwork  wrote:
>>>
>>>> Hi ,
>>>> am new to elastic  stop words and I want to understand more
>>>>
>>>> can we configure the stop words at time of index creation and later
>>>> update the stop words with _settings API .
>>>>
>>>> Does it requires to re index documents  to  reflect the new list of
>>>> stop words ?
>>>>
>>>> I want to know if there is a way to configure stop words only for
>>>> search API and get stop words reflect on search results
>>>>
>>>>
>>>>
>>>> http://www.elastic.co/guide/en/elasticsearch/guide/current/using-stopwords.html
>>>>
>>>> http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
>>>>
>>>>
>>>> Regards,
>>>> Nagaraju
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>

Re: Stop words and re indexing

2015-04-14 Thread buddarapu nagaraju
Hey Vineeth,

Thank you

Is there a way I can specify the stop words only during searches .

For example the word "AND" I want to index but I want my searches consider
this

Regards
Nagaraju
908 517 6981

On Tue, Apr 14, 2015 at 10:59 PM, vineeth mohan 
wrote:

> Hello  ,
>
> I need to double check if we can change the analyzer defenition.
> But then even if you change it , you need to re index the whole index to
> make it working.
> Else your index would be looking bad with a set of documents analyzed
> differently with different set of stop words and another set analyzed
> differently , with different set of stop words.
>
> So my advice would be to reindex the whole index , you you badly need this.
>
> Thanks
>Vineeth Mohan,
>Elasticsearch consultant,
>qbox.io ( Elasticsearch service provider )
>
>
> On Wed, Apr 15, 2015 at 1:49 AM, bvnrwork  wrote:
>
>> Hi ,
>> am new to elastic  stop words and I want to understand more
>>
>> can we configure the stop words at time of index creation and later
>> update the stop words with _settings API .
>>
>> Does it requires to re index documents  to  reflect the new list of stop
>> words ?
>>
>> I want to know if there is a way to configure stop words only for search
>> API and get stop words reflect on search results
>>
>>
>>
>> http://www.elastic.co/guide/en/elasticsearch/guide/current/using-stopwords.html
>>
>> http://www.elastic.co/guide/en/elasticsearch/reference/current/indices-update-settings.html
>>
>>
>> Regards,
>> Nagaraju
>>
>> --
>> 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/fb085289-98e5-4d9b-a872-daae51a3080e%40googlegroups.com
>> 
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> 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/-5QCy0GmqcY/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAGdPd5m%3D969aaberH34ZQ-fq2%2Bot0f19BJ5%3D%2BvsGcgL98rqaoQ%40mail.gmail.com
> 
> .
>
> 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/CAFtuXXLkE8fctChrUvKCiYHwXK1%3Dr4H%2BWSVoNdoMVK%2B9FJ1dNw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: elastic search query syntax

2015-04-06 Thread buddarapu nagaraju
hi ,

Can some body help me getting search syntax for above mentioned queries in
previous emails

Regards
Nagaraju
908 517 6981

On Fri, Apr 3, 2015 at 11:52 PM, bvnrwork  wrote:

> Can some one help me getting these query syntax for below queries
>
> how to find documents that has united and states but not with in 30 words
> ?(united AND states NOT WITHIN 30 WORDS)?
>
> how to find the documents that has united before america ?(united BEFORE
> america)
>
> how to find the documents that has united followed by america?(united
> FOLLOWEDBY america )
>
> how to find the documents that war and peace near novel or book?(war AND
> peace) NEAR (novel OR book)
>
> On Friday, 3 April 2015 01:55:57 UTC-4, bvnrwork wrote:
>>
>> Can some one help me writing above mentioned search queries or at-least
>> reference where I can look for examples
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Thu, Apr 2, 2015 at 8:46 PM, buddarapu nagaraju > > wrote:
>>
>>>  also please let me know the syntax for below query scenario
>>>
>>> how to find the documents with  a phrase starts with "united" and ends
>>> with "states" conatain the term "new york" in between
>>>
>>> Regards
>>> Nagaraju
>>> 908 517 6981
>>>
>>> On Thu, Apr 2, 2015 at 8:38 PM, bvnrwork  wrote:
>>>
>>>> Can some one help me to write queries for below scenarios ?
>>>>
>>>> how to find documents that has united and states but not with in 30
>>>> words ?(united AND states NOT WITHIN 30 WORDS)?
>>>>
>>>> how to find the documents that has united before america ?(united
>>>> BEFORE america)
>>>>
>>>> how to find the documents that has united followed by america?(united
>>>> FOLLOWEDBY america )
>>>>
>>>> how to find the documents that war and peace near novel or book?(war
>>>> AND peace) NEAR (novel OR book)
>>>>
>>>>
>>>> Regards,
>>>>
>>>> Nagaraju
>>>>
>>>> --
>>>> 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/rqDipmvYjyU/unsubscribe.
>>>> To unsubscribe from this group and all its topics, send an email to
>>>> elasticsearch+unsubscr...@googlegroups.com.
>>>> To view this discussion on the web visit https://groups.google.com/d/
>>>> msgid/elasticsearch/074d907d-1e87-4c57-9933-227e407fd0cb%
>>>> 40googlegroups.com
>>>> <https://groups.google.com/d/msgid/elasticsearch/074d907d-1e87-4c57-9933-227e407fd0cb%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 a topic in the
> Google Groups "elasticsearch" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/elasticsearch/rqDipmvYjyU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/d9776143-164a-4343-bbf9-5427a4c4739f%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/d9776143-164a-4343-bbf9-5427a4c4739f%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/CAFtuXXLzQtLCtB93B03VKUr97TEGGWjYhCFGZGxHvBP7ugkXDA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: elastic search query syntax

2015-04-02 Thread buddarapu nagaraju
Can some one help me writing above mentioned search queries or at-least
reference where I can look for examples

Regards
Nagaraju
908 517 6981

On Thu, Apr 2, 2015 at 8:46 PM, buddarapu nagaraju 
wrote:

>  also please let me know the syntax for below query scenario
>
> how to find the documents with  a phrase starts with "united" and ends
> with "states" conatain the term "new york" in between
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Thu, Apr 2, 2015 at 8:38 PM, bvnrwork  wrote:
>
>> Can some one help me to write queries for below scenarios ?
>>
>> how to find documents that has united and states but not with in 30 words
>> ?(united AND states NOT WITHIN 30 WORDS)?
>>
>> how to find the documents that has united before america ?(united BEFORE
>> america)
>>
>> how to find the documents that has united followed by america?(united
>> FOLLOWEDBY america )
>>
>> how to find the documents that war and peace near novel or book?(war AND
>> peace) NEAR (novel OR book)
>>
>>
>> Regards,
>>
>> Nagaraju
>>
>> --
>> 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/rqDipmvYjyU/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> elasticsearch+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/074d907d-1e87-4c57-9933-227e407fd0cb%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/074d907d-1e87-4c57-9933-227e407fd0cb%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/CAFtuXX%2B6d_EfrnYNN320x%2BzLumCNjkqjDdSvX%3DAENvXCC%2B3Ltg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: elastic search query syntax

2015-04-02 Thread buddarapu nagaraju
also please let me know the syntax for below query scenario

how to find the documents with  a phrase starts with "united" and ends with
"states" conatain the term "new york" in between

Regards
Nagaraju
908 517 6981

On Thu, Apr 2, 2015 at 8:38 PM, bvnrwork  wrote:

> Can some one help me to write queries for below scenarios ?
>
> how to find documents that has united and states but not with in 30 words
> ?(united AND states NOT WITHIN 30 WORDS)?
>
> how to find the documents that has united before america ?(united BEFORE
> america)
>
> how to find the documents that has united followed by america?(united
> FOLLOWEDBY america )
>
> how to find the documents that war and peace near novel or book?(war AND
> peace) NEAR (novel OR book)
>
>
> Regards,
>
> Nagaraju
>
> --
> 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/rqDipmvYjyU/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/074d907d-1e87-4c57-9933-227e407fd0cb%40googlegroups.com
> 
> .
> 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/CAFtuXXKNAGkQdQhvDVcvgYZEyxurbCFyds%3DMWmCk2c07GPLr5w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Urgent :adding fields mapping for nested document property

2015-03-04 Thread buddarapu nagaraju
Here is my example :

1) Index creation request

{

  "settings": {

"index": {

  "number_of_shards": 1,

  "number_of_replicas": 0

}

  },

  "mappings": {

"document": {

  "dynamic": "strict",

  "properties": {

"id": {

  "type": "integer"

},

"rank": {

  "type": "float"

},

"title": {

  "type": "string"

},

"text": {

  "type": "string"

},

"path": {

  "type": "string"

},

"



"fields": {

  "type": "object",

  "properties": {

"item": {

  "type": "object",

  "properties": {}

},

"keys": {

  "type": "string"

},

"values": {

  "type": "object",

  "properties": {}

}

  }

}

  }

}

  },

  "aliases": {

"dfm032": {}

  }

}



2)Index a document


{ "index" :  {"_type":"document","_id":"1"} }

{"id":1,"rank":0.0,"text":"One","fields":{}}
3) Later use feels that he needs a new field with specific behavior so
trying to update the behavior

I want create this new field called "name" in fields not under document


{
  "document": {
"properties": {
  "name": {
"index": "analyzed",
"type": "string",
"fields": {
  "name_na": {
"index": "not_analyzed",
"type": "string"
      }
    }
  }
}
  }
}


4) After updating the mapping ,index a new document with name field


{ "index" :  {"_type":"document","_id":"2"} }
{"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}


I don't know how to specify that new "name" field should be under fields .

Due to this 4th step fails as a enabled strict dynamic mapping

Can you help me to specify the new field "name" under fields of document  ?

Regards
Nagaraju
908 517 6981

On Wed, Mar 4, 2015 at 1:29 PM, David Pilato  wrote:

> Where is your script?
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 4 mars 2015 à 19:22, buddarapu nagaraju  a
> écrit :
>
> Hello David ,
>
> I want to add the field mapping after ingestion is done and have specific
> document structure Document{ Id, fields{key,value}
>
> I could able to add field mapping under document using the script but
> could not under fields
>
>
> so how do I specify "fields " path for field mapping when new fields added
>
> Can you look at my script
>
>
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Wed, Mar 4, 2015 at 1:16 PM, David Pilato  wrote:
>
>> Could you GIST a full script?
>>
>> --
>> David ;-)
>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>
>> Le 4 mars 2015 à 19:05, buddarapu nagaraju  a
>> écrit :
>>
>> hi ,
>>
>> Please let me know if some one has any ideas
>>
>>
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju <
>> budda08n...@gmail.com> wrote:
>>
>>> Any one has any ideas :)
>>>
>>> Regards
>>> Nagaraju
>>> 908 517 6981
>>>
>>> On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork  wrote:
>>>
>>>> Hello David ,
>>>>
>>>> Any quick help ? please
>>>>
>>>>
>>>> On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
>>>>>
>>>>> Here is my example :
>>>>>
>>>>> 1) Index creation request
>>>>>
>>>>> {
>>>>>
>>>>>   "settings": {
>>>>>
>>>>> "index": {
>>>>>
>>>>>   "number_of_shards": 1,
>>>>>
>>>>>   "number_of_replicas": 0
>>>>>
>&g

Re: Urgent :adding fields mapping for nested document property

2015-03-04 Thread buddarapu nagaraju
Hello David ,

I want to add the field mapping after ingestion is done and have specific
document structure Document{ Id, fields{key,value}

I could able to add field mapping under document using the script but could
not under fields


so how do I specify "fields " path for field mapping when new fields added

Can you look at my script



Regards
Nagaraju
908 517 6981

On Wed, Mar 4, 2015 at 1:16 PM, David Pilato  wrote:

> Could you GIST a full script?
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 4 mars 2015 à 19:05, buddarapu nagaraju  a
> écrit :
>
> hi ,
>
> Please let me know if some one has any ideas
>
>
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju  > wrote:
>
>> Any one has any ideas :)
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork  wrote:
>>
>>> Hello David ,
>>>
>>> Any quick help ? please
>>>
>>>
>>> On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
>>>>
>>>> Here is my example :
>>>>
>>>> 1) Index creation request
>>>>
>>>> {
>>>>
>>>>   "settings": {
>>>>
>>>> "index": {
>>>>
>>>>   "number_of_shards": 1,
>>>>
>>>>   "number_of_replicas": 0
>>>>
>>>> }
>>>>
>>>>   },
>>>>
>>>>   "mappings": {
>>>>
>>>> "document": {
>>>>
>>>>   "dynamic": "strict",
>>>>
>>>>   "properties": {
>>>>
>>>> "id": {
>>>>
>>>>   "type": "integer"
>>>>
>>>> },
>>>>
>>>> "rank": {
>>>>
>>>>   "type": "float"
>>>>
>>>> },
>>>>
>>>> "title": {
>>>>
>>>>   "type": "string"
>>>>
>>>> },
>>>>
>>>> "text": {
>>>>
>>>>   "type": "string"
>>>>
>>>> },
>>>>
>>>> "path": {
>>>>
>>>>   "type": "string"
>>>>
>>>> },
>>>>
>>>> "
>>>>
>>>>
>>>>
>>>> "fields": {
>>>>
>>>>   "type": "object",
>>>>
>>>>   "properties": {
>>>>
>>>> "item": {
>>>>
>>>>   "type": "object",
>>>>
>>>>   "properties": {}
>>>>
>>>> },
>>>>
>>>> "keys": {
>>>>
>>>>   "type": "string"
>>>>
>>>> },
>>>>
>>>> "values": {
>>>>
>>>>   "type": "object",
>>>>
>>>>   "properties": {}
>>>>
>>>> }
>>>>
>>>>   }
>>>>
>>>> }
>>>>
>>>>   }
>>>>
>>>> }
>>>>
>>>>   },
>>>>
>>>>   "aliases": {
>>>>
>>>> "dfm032": {}
>>>>
>>>>   }
>>>>
>>>> }
>>>>
>>>>
>>>>
>>>> 2)Index a document
>>>>
>>>>
>>>> { "index" :  {"_type":"document","_id":"1"} }
>>>>
>>>> {"id":1,"rank":0.0,"text":"One","fields":{}}
>>>> 3) Later use feels that he needs a new field with specific behavior so
>>>> trying to update the behavior
>>>>
>>>> I want create this new field called "name" in fields not under document
>>&

Re: Urgent :adding fields mapping for nested document property

2015-03-04 Thread buddarapu nagaraju
hi ,

Please let me know if some one has any ideas



Regards
Nagaraju
908 517 6981

On Thu, Feb 26, 2015 at 2:16 PM, buddarapu nagaraju 
wrote:

> Any one has any ideas :)
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork  wrote:
>
>> Hello David ,
>>
>> Any quick help ? please
>>
>>
>> On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
>>>
>>> Here is my example :
>>>
>>> 1) Index creation request
>>>
>>> {
>>>
>>>   "settings": {
>>>
>>> "index": {
>>>
>>>   "number_of_shards": 1,
>>>
>>>   "number_of_replicas": 0
>>>
>>> }
>>>
>>>   },
>>>
>>>   "mappings": {
>>>
>>> "document": {
>>>
>>>   "dynamic": "strict",
>>>
>>>   "properties": {
>>>
>>> "id": {
>>>
>>>   "type": "integer"
>>>
>>> },
>>>
>>> "rank": {
>>>
>>>   "type": "float"
>>>
>>> },
>>>
>>> "title": {
>>>
>>>   "type": "string"
>>>
>>> },
>>>
>>> "text": {
>>>
>>>   "type": "string"
>>>
>>> },
>>>
>>> "path": {
>>>
>>>   "type": "string"
>>>
>>> },
>>>
>>> "
>>>
>>>
>>>
>>> "fields": {
>>>
>>>   "type": "object",
>>>
>>>   "properties": {
>>>
>>> "item": {
>>>
>>>   "type": "object",
>>>
>>>   "properties": {}
>>>
>>> },
>>>
>>> "keys": {
>>>
>>>   "type": "string"
>>>
>>> },
>>>
>>> "values": {
>>>
>>>   "type": "object",
>>>
>>>   "properties": {}
>>>
>>> }
>>>
>>>   }
>>>
>>> }
>>>
>>>   }
>>>
>>> }
>>>
>>>   },
>>>
>>>   "aliases": {
>>>
>>> "dfm032": {}
>>>
>>>   }
>>>
>>> }
>>>
>>>
>>>
>>> 2)Index a document
>>>
>>>
>>> { "index" :  {"_type":"document","_id":"1"} }
>>>
>>> {"id":1,"rank":0.0,"text":"One","fields":{}}
>>> 3) Later use feels that he needs a new field with specific behavior so
>>> trying to update the behavior
>>>
>>> I want create this new field called "name" in fields not under document
>>>
>>>
>>> {
>>>   "document": {
>>> "properties": {
>>>   "name": {
>>> "index": "analyzed",
>>> "type": "string",
>>> "fields": {
>>>   "name_na": {
>>> "index": "not_analyzed",
>>> "type": "string"
>>>   }
>>> }
>>>   }
>>> }
>>>   }
>>> }
>>>
>>>
>>> 4) After updating the mapping ,index a new document with name field
>>>
>>>
>>> { "index" :  {"_type":"document","_id":"2"} }
>>> {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
>>>
>>>
>>> I don't know how to specify that new "name" field should be under fields
>>> .
>>>
>>> Due to this 4th step fails as a enabled strict dynamic mapping
>>>

Re: Urgent :adding fields mapping for nested document property

2015-02-26 Thread buddarapu nagaraju
Any one has any ideas :)

Regards
Nagaraju
908 517 6981

On Wed, Feb 25, 2015 at 1:16 AM, bvnrwork  wrote:

> Hello David ,
>
> Any quick help ? please
>
>
> On Tuesday, 24 February 2015 20:32:53 UTC-5, bvnrwork wrote:
>>
>> Here is my example :
>>
>> 1) Index creation request
>>
>> {
>>
>>   "settings": {
>>
>> "index": {
>>
>>   "number_of_shards": 1,
>>
>>   "number_of_replicas": 0
>>
>> }
>>
>>   },
>>
>>   "mappings": {
>>
>> "document": {
>>
>>   "dynamic": "strict",
>>
>>   "properties": {
>>
>> "id": {
>>
>>   "type": "integer"
>>
>> },
>>
>> "rank": {
>>
>>   "type": "float"
>>
>> },
>>
>> "title": {
>>
>>   "type": "string"
>>
>> },
>>
>> "text": {
>>
>>   "type": "string"
>>
>> },
>>
>> "path": {
>>
>>   "type": "string"
>>
>> },
>>
>> "
>>
>>
>>
>> "fields": {
>>
>>   "type": "object",
>>
>>   "properties": {
>>
>> "item": {
>>
>>   "type": "object",
>>
>>   "properties": {}
>>
>> },
>>
>> "keys": {
>>
>>   "type": "string"
>>
>> },
>>
>> "values": {
>>
>>   "type": "object",
>>
>>   "properties": {}
>>
>> }
>>
>>   }
>>
>> }
>>
>>   }
>>
>> }
>>
>>   },
>>
>>   "aliases": {
>>
>> "dfm032": {}
>>
>>   }
>>
>> }
>>
>>
>>
>> 2)Index a document
>>
>>
>> { "index" :  {"_type":"document","_id":"1"} }
>>
>> {"id":1,"rank":0.0,"text":"One","fields":{}}
>> 3) Later use feels that he needs a new field with specific behavior so
>> trying to update the behavior
>>
>> I want create this new field called "name" in fields not under document
>>
>>
>> {
>>   "document": {
>> "properties": {
>>   "name": {
>> "index": "analyzed",
>> "type": "string",
>> "fields": {
>>   "name_na": {
>> "index": "not_analyzed",
>> "type": "string"
>>   }
>> }
>>   }
>> }
>>   }
>> }
>>
>>
>> 4) After updating the mapping ,index a new document with name field
>>
>>
>> { "index" :  {"_type":"document","_id":"2"} }
>> {"id":2,"rank":0.0,"text":"Two","fields":{"name":"Ven Nag"}}
>>
>>
>> I don't know how to specify that new "name" field should be under fields .
>>
>> Due to this 4th step fails as a enabled strict dynamic mapping
>>
>> Can you help me to specify the new field "name" under fields of document
>>  ?
>>
>>
>>
>> On Wednesday, 4 February 2015 01:00:55 UTC-5, David Pilato wrote:
>>>
>>> I think you are looking after templates.
>>>
>>> David
>>>
>>> Le 4 févr. 2015 à 06:51, bvnrwork  a écrit :
>>>
>>> In other words additional fields are stored as
>>> {
>>> {
>>> Key:"field1"
>>> Value:"value1"
>>> }
>>> {
>>> Key:"field2"
>>> Value:"value2"
>>> }
>>>
>>> }
>>>
>>> field1 is created after initial field mapping, now how do I define
>>> field1 as not analyzed when it is created or do I need to change document
>>> structure
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Tuesday, 3 February 2015 23:53:29 UTC-5, bvnrwork wrote:

 Hi,

 We have Document structure like this

 Document
 {
Key1:Value1
Key2:Value2
Key3:Value3,
Key4:Valu4
List AdditionalFields;
 }

 Additional fields are the dynamic fields(they can grow or sink) and
 these fields need to obey certain behavior like analyzed /not analyzed or
 this sort of stuff when they created.

 One thing I don't know /I don't understand is  how we define behavior
 on keys (Fields /field names) from Additional fields ?

 For below example document :



 Document
 {
 Key1:Value1,
 Key2:Value2
 AdditionalFields
 {
 Key3:Value3
 }

 If I define Key3 as not analyzed  in the index definition then whether
 Value3 is not going to analyzed

 Or Is there a way to do  this ?



 Regards,
 Nagaraju




  --
>>> 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/3921832e-47e5-4565-abed-d57b6aea2aaf%
>>> 40googlegroups.com
>>> 
>>> .
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>> 
>>>
>>>  --
> 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/t9jgOkWUe60/unsubscribe.
> To unsubscribe from this g

Re: How to perform search on the qualified docs resulted from a query

2015-01-27 Thread buddarapu nagaraju
Any answers for me :)?

Regards
Nagaraju
908 517 6981

On Sun, Jan 25, 2015 at 2:14 PM, buddarapu nagaraju 
wrote:

> I dont get it exactly so explaining doc structure and example docs .I
> understand that HasChild will get you the parent documents and HasParent
> will get the only parents.Please help me in understanding
>
> have two document types :one is FakeDocument which is the fake document
> holding the group id for all docs in a group
> and other is Document which is the actual document
>
> Example Docs are:
>
>
> FakeDocument{
> Id:"G1"
> }
> FakeDocument{
> Id:"G2"
> }
>
> Indexed two documents under group "G1"
>
> Document1{
> Name:One
>
> }
>
> Document2{
> Name:Two
>
> }
>
>
> Indexed two documents under group "G2"
>
> Document3{
> Name:Three
>
> }
>
> Document4{
> Name:Four
>
> }
>
>
> Now my scenario is
>
>
> querying for "Name:One" should result me document with name :"One" and
> also all other documents that has same _parentId in one request
>
>
>
>
>
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Sun, Jan 25, 2015 at 12:14 AM, David Pilato  wrote:
>
>> If you are using Parent / Child feature, you should look at has_parent,
>> has_child filters.
>>
>>
>> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html#query-dsl-has-child-filter
>>
>> In that case, you don't need to get back parent id yourself.
>>
>> If you are not using Parent / child, I'm afraid you need to run 2 queries.
>>
>> My 2 cents
>>
>> --
>> David ;-)
>> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>>
>> Le 25 janv. 2015 à 05:44, bvnrwork  a écrit :
>>
>> Hi,
>>
>> can some one help me on this.
>>
>> have scenario where have Query1 which qualifies some documents and now I
>> want to take _parent id of qualified documents and search on _parentid
>> field to get the qualified documents and all others documents with same
>> parent id
>>
>> .These two searches I want to do it in one single request , is it
>> possible?
>>
>> Regards,
>> Nagaraju
>>
>> --
>> 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/a1946c82-7239-4e56-a082-ab11e66b4041%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/a1946c82-7239-4e56-a082-ab11e66b4041%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 a topic in the
>> Google Groups "elasticsearch" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/elasticsearch/Ye7ICf_ZUkg/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> elasticsearch+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/A4959B00-FB5F-4EAA-9304-5B2BCC490601%40pilato.fr
>> <https://groups.google.com/d/msgid/elasticsearch/A4959B00-FB5F-4EAA-9304-5B2BCC490601%40pilato.fr?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/CAFtuXX%2B2wEtz7ff-xXa%2BztvC%2B%2Bg-hpKY4s5X0%2BRVAZ8U5d7Puw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to perform search on the qualified docs resulted from a query

2015-01-25 Thread buddarapu nagaraju
I dont get it exactly so explaining doc structure and example docs .I
understand that HasChild will get you the parent documents and HasParent
will get the only parents.Please help me in understanding

have two document types :one is FakeDocument which is the fake document
holding the group id for all docs in a group
and other is Document which is the actual document

Example Docs are:


FakeDocument{
Id:"G1"
}
FakeDocument{
Id:"G2"
}

Indexed two documents under group "G1"

Document1{
Name:One

}

Document2{
Name:Two

}


Indexed two documents under group "G2"

Document3{
Name:Three

}

Document4{
Name:Four

}


Now my scenario is


querying for "Name:One" should result me document with name :"One" and also
all other documents that has same _parentId in one request






Regards
Nagaraju
908 517 6981

On Sun, Jan 25, 2015 at 12:14 AM, David Pilato  wrote:

> If you are using Parent / Child feature, you should look at has_parent,
> has_child filters.
>
>
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-has-child-filter.html#query-dsl-has-child-filter
>
> In that case, you don't need to get back parent id yourself.
>
> If you are not using Parent / child, I'm afraid you need to run 2 queries.
>
> My 2 cents
>
> --
> David ;-)
> Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs
>
> Le 25 janv. 2015 à 05:44, bvnrwork  a écrit :
>
> Hi,
>
> can some one help me on this.
>
> have scenario where have Query1 which qualifies some documents and now I
> want to take _parent id of qualified documents and search on _parentid
> field to get the qualified documents and all others documents with same
> parent id
>
> .These two searches I want to do it in one single request , is it possible?
>
> Regards,
> Nagaraju
>
> --
> 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/a1946c82-7239-4e56-a082-ab11e66b4041%40googlegroups.com
> 
> .
> For more options, visit https://groups.google.com/d/optout.
>
>  --
> 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/Ye7ICf_ZUkg/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/A4959B00-FB5F-4EAA-9304-5B2BCC490601%40pilato.fr
> 
> .
>
> 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/CAFtuXX%2B%2BpREVYLKLPrXdbNAS%3DrY5S%2BBkvkg_HxE5_V129CnA%3DQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: Aggregation - Blank and date aggregation

2015-01-16 Thread buddarapu nagaraju
I was able to figure out through fiddler ...date histrograms are returns in
seperate nested object in the result .. Now works

On Friday, January 16, 2015, Adrien Grand 
wrote:

> This looks good, what error did you get?
>
> On Fri, Jan 16, 2015 at 9:41 AM, buddarapu nagaraju  > wrote:
>
>> Index mapping here
>>
>> "mappings": {
>>
>>- "document": {
>>   - "properties": {
>>  - "createdDateTime": {
>> - "format": "dateOptionalTime",
>> - "type": "date"
>>  },
>>  - "doubleSort1": {
>> - "type": "double"
>>  },
>>  - "stringSort3": {
>> - "type": "string"
>>  },
>>  - "doubleSort2": {
>> - "type": "double"
>>  },
>>  - "doubleSort3": {
>> - "type": "double"
>>  },
>>  - "numSort1": {
>> - "type": "long"
>>  },
>>  - "stringSort2": {
>> - "type": "string"
>>  },
>>  - "dcn": {
>> - "type": "string"
>>  },
>>  - "numSort2": {
>> - "type": "long"
>>  },
>>  - "numSort3": {
>> - "type": "long"
>>  },
>>  - "path": {
>> - "type": "string"
>>  },
>>  - "numField": {
>> - "type": "long"
>>  },
>>  - "dateSort3": {
>> - "format": "dateOptionalTime",
>> - "type": "date"
>>  },
>>  - "dateSort2": {
>> - "format": "dateOptionalTime",
>> - "type": "date"
>>  },
>>  - "rank": {
>>     - "type": "double"
>>  },
>>  - "id": {
>> - "type": "long"
>>  },
>>  - "text": {
>> - "type": "string"
>>  },
>>  - "fields": {
>> - "properties": {
>>- "isAnalyzed": {
>>   - "type": "boolean"
>>},
>>- "name": {
>>   - "type": "string"
>>},
>>- "isFullText": {
>>   - "type": "boolean"
>>},
>>- "isStored": {
>>   - "type": "boolean"
>>},
>>- "value": {
>>   - "type": "string"
>>}
>> }
>>  }
>>   }
>>}
>>
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Fri, Jan 16, 2015 at 3:23 AM, buddarapu nagaraju <
>> budda08n...@gmail.com
>> > wrote:
>>
>>> Hi ,
>>>
>>> I tried but date histrogram didnt work not sure what is the mistake am
>>> doing
>>>
>>> here is date histrogram request(json) am passing and also pasted sample
>>> doc structure
>>>
>>>
>>>
>>>
>>>
>>> date histogram request
>>>
>>> {
>>>   "aggs": {
>>> "createddatetime": {
>>>   "date_histogram": {
>>>     "field": "createddatetime",
>>> "interval": "day"
>>>   }
>>> }
>>>   }
>>> }
>>>
>>> Document in index has fields
>>>
>>>
>>>
>>>-
>>>   - "id": 79,
>>>   - "rank": 0,
>>>   - "dateSort2": "2015-01-15T06:08:06.7091884Z",
>>>   - "dateSort3": "0001-01-01T00:00:00",
>>>   - "do

Re: Aggregation - Blank and date aggregation

2015-01-16 Thread buddarapu nagaraju
Index mapping here

"mappings": {

   - "document": {
  - "properties": {
 - "createdDateTime": {
- "format": "dateOptionalTime",
- "type": "date"
 },
 - "doubleSort1": {
- "type": "double"
 },
 - "stringSort3": {
- "type": "string"
 },
 - "doubleSort2": {
- "type": "double"
 },
 - "doubleSort3": {
- "type": "double"
 },
 - "numSort1": {
- "type": "long"
 },
 - "stringSort2": {
- "type": "string"
 },
 - "dcn": {
- "type": "string"
 },
 - "numSort2": {
- "type": "long"
 },
 - "numSort3": {
- "type": "long"
 },
 - "path": {
- "type": "string"
 },
 - "numField": {
- "type": "long"
 },
 - "dateSort3": {
- "format": "dateOptionalTime",
- "type": "date"
 },
 - "dateSort2": {
- "format": "dateOptionalTime",
- "type": "date"
 },
 - "rank": {
- "type": "double"
 },
 - "id": {
- "type": "long"
 },
 - "text": {
- "type": "string"
     },
 - "fields": {
- "properties": {
   - "isAnalyzed": {
  - "type": "boolean"
   },
   - "name": {
  - "type": "string"
   },
   - "isFullText": {
  - "type": "boolean"
   },
   - "isStored": {
  - "type": "boolean"
   },
   - "value": {
  - "type": "string"
   }
}
 }
  }
   }


Regards
Nagaraju
908 517 6981

On Fri, Jan 16, 2015 at 3:23 AM, buddarapu nagaraju 
wrote:

> Hi ,
>
> I tried but date histrogram didnt work not sure what is the mistake am
> doing
>
> here is date histrogram request(json) am passing and also pasted sample
> doc structure
>
>
>
>
>
> date histogram request
>
> {
>   "aggs": {
> "createddatetime": {
>   "date_histogram": {
> "field": "createddatetime",
> "interval": "day"
>   }
> }
>   }
> }
>
> Document in index has fields
>
>
>
>-
>   - "id": 79,
>   - "rank": 0,
>   - "dateSort2": "2015-01-15T06:08:06.7091884Z",
>   - "dateSort3": "0001-01-01T00:00:00",
>   - "doubleSort1": 118.5,
>   - "doubleSort2": 67884.18,
>   - "doubleSort3": 54262.6006,
>   - "numField": 0,
>   - "createdDateTime": "2015-01-16T06:08:06.7091884Z",
>   -
>
>
> Regards
> Nagaraju
> 908 517 6981
>
> On Thu, Jan 15, 2015 at 12:38 PM, Adrien Grand <
> adrien.gr...@elasticsearch.com> wrote:
>
>> Then it means that you want to use a date_histogram aggregation with
>> interval=day. See
>> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html
>>
>> On Thu, Jan 15, 2015 at 4:43 PM, buddarapu nagaraju <
>> budda08n...@gmail.com> wrote:
>>
>>> Hey Adrien ,Thank you.I have one more question on aggregating on dates .
>>>
>>> We actually stored date time in a field called "createdDateTime" but I
>>> need only aggregates on date part of date time .
>>>
>>> Any ideas ? Or sample code  can help us ?
>>>
>>> Regards
>>> Nagaraju
>>> 908 517 6981
>>>
>>> On Wed, Jan 14, 2015 at 6:10 AM, Adrien Grand <
>>> adrien.gr...@elasticsearch.com> wrote:
>>>
>>>>
>>>>
>>>> On Wed, Jan 14, 2015 at 10:

Re: Aggregation - Blank and date aggregation

2015-01-16 Thread buddarapu nagaraju
Hi ,

I tried but date histrogram didnt work not sure what is the mistake am doing

here is date histrogram request(json) am passing and also pasted sample doc
structure





date histogram request

{
  "aggs": {
"createddatetime": {
  "date_histogram": {
"field": "createddatetime",
"interval": "day"
  }
}
  }
}

Document in index has fields



   -
  - "id": 79,
  - "rank": 0,
  - "dateSort2": "2015-01-15T06:08:06.7091884Z",
  - "dateSort3": "0001-01-01T00:00:00",
  - "doubleSort1": 118.5,
  - "doubleSort2": 67884.18,
  - "doubleSort3": 54262.6006,
  - "numField": 0,
  - "createdDateTime": "2015-01-16T06:08:06.7091884Z",
  -


Regards
Nagaraju
908 517 6981

On Thu, Jan 15, 2015 at 12:38 PM, Adrien Grand <
adrien.gr...@elasticsearch.com> wrote:

> Then it means that you want to use a date_histogram aggregation with
> interval=day. See
> http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations-bucket-datehistogram-aggregation.html
>
> On Thu, Jan 15, 2015 at 4:43 PM, buddarapu nagaraju  > wrote:
>
>> Hey Adrien ,Thank you.I have one more question on aggregating on dates .
>>
>> We actually stored date time in a field called "createdDateTime" but I
>> need only aggregates on date part of date time .
>>
>> Any ideas ? Or sample code  can help us ?
>>
>> Regards
>> Nagaraju
>> 908 517 6981
>>
>> On Wed, Jan 14, 2015 at 6:10 AM, Adrien Grand <
>> adrien.gr...@elasticsearch.com> wrote:
>>
>>>
>>>
>>> On Wed, Jan 14, 2015 at 10:37 AM, buddarapu nagaraju <
>>> budda08n...@gmail.com> wrote:
>>>
>>>> Does term aggregation counts on blank field values ?
>>>>
>>>>
>>> Yes, an empty value "" counts as a term. Note that you need the field to
>>> be not analyzed for it to work (or to use an analyzer that emits empty
>>> strings). Otherwise the standard analyzer would analyzer "" as an empty
>>> list of tokens, so a field value of "" would not actually count...
>>>
>>>
>>>> Does term aggregation is enough for doing date aggregation ? Or there
>>>> any specific aggregations we have ?All I need in date aggregation is to
>>>> know different dates and its counts ?
>>>>
>>>
>>> A terms aggregation is enough, but a date_histogram aggregation is
>>> generally more useful on dates as there are lots of unique values and it's
>>> often more useful to group them based on the year, month or day.
>>>
>>> --
>>> Adrien Grand
>>>
>>> --
>>> 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/i9N09n_-n38/unsubscribe.
>>> To unsubscribe from this group and all its topics, send an email to
>>> elasticsearch+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j74ZqbBN0zNW6-5Feu7xYTKkomzx%3DDMhx28inFVYLSu5Q%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j74ZqbBN0zNW6-5Feu7xYTKkomzx%3DDMhx28inFVYLSu5Q%40mail.gmail.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/CAFtuXXKp0JycJfNvLxPGN_5YL7P-X%3DGDzvmYJQ9NFN7Q%2BaJjQw%40mail.gmail.com
>> <https://groups.google.com/d/msgid/elasticsearch/CAFtuXXKp0JycJfNvLxPGN_5YL7P-X%3DGDzvmYJQ9NFN7Q%2BaJjQw%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>
>
> --
> Adrien Grand
>
> --
> 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/e

Re: Aggregation - Blank and date aggregation

2015-01-15 Thread buddarapu nagaraju
Hey Adrien ,Thank you.I have one more question on aggregating on dates .

We actually stored date time in a field called "createdDateTime" but I need
only aggregates on date part of date time .

Any ideas ? Or sample code  can help us ?

Regards
Nagaraju
908 517 6981

On Wed, Jan 14, 2015 at 6:10 AM, Adrien Grand <
adrien.gr...@elasticsearch.com> wrote:

>
>
> On Wed, Jan 14, 2015 at 10:37 AM, buddarapu nagaraju <
> budda08n...@gmail.com> wrote:
>
>> Does term aggregation counts on blank field values ?
>>
>>
> Yes, an empty value "" counts as a term. Note that you need the field to
> be not analyzed for it to work (or to use an analyzer that emits empty
> strings). Otherwise the standard analyzer would analyzer "" as an empty
> list of tokens, so a field value of "" would not actually count...
>
>
>> Does term aggregation is enough for doing date aggregation ? Or there any
>> specific aggregations we have ?All I need in date aggregation is to know
>> different dates and its counts ?
>>
>
> A terms aggregation is enough, but a date_histogram aggregation is
> generally more useful on dates as there are lots of unique values and it's
> often more useful to group them based on the year, month or day.
>
> --
> Adrien Grand
>
> --
> 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/i9N09n_-n38/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j74ZqbBN0zNW6-5Feu7xYTKkomzx%3DDMhx28inFVYLSu5Q%40mail.gmail.com
> <https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j74ZqbBN0zNW6-5Feu7xYTKkomzx%3DDMhx28inFVYLSu5Q%40mail.gmail.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/CAFtuXXKp0JycJfNvLxPGN_5YL7P-X%3DGDzvmYJQ9NFN7Q%2BaJjQw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all docs in a family ?

2015-01-14 Thread buddarapu nagaraju
okay .I am new to elastic search and help me understand .

So you mean to say with the nested objects , you can return only inner
objects if required or return entire object ?

If we can do this with nested objects , can you send me any sample code or
example .

My applications relations deals only with one parent and multiple child's
 and child can have it own child's and so on .

Do you recommend using nested object for this kind of document relations ?


Actually now thinking that I can have fake document type which holds
documents in a family  and don't have to bother about the how deep the
relation hierarchy is



Regards
Nagaraju
908 517 6981

On Wed, Jan 14, 2015 at 2:54 PM, Ed Kim  wrote:

> If the relationship is very simple, I don't see why not. We originally
> decided to denormalize part of the parent document because we wanted to
> minimize the payload of the returning documents. A little while later, we
> found out we could omit fields from the document payload, but at that
> point, we had a smooth running app already, so we just noted this change
> into our research queue.
>
>
> On Wednesday, January 14, 2015 at 11:39:42 AM UTC-8, buddarapu nagaraju
> wrote:
>>
>> my understanding is nested objects (including nested filter and join)
>> also doesnt help in this regard , correct me if am wrong
>>
>> On Wednesday, 14 January 2015 14:31:22 UTC-5, Ed Kim wrote:
>>>
>>> I'm not sure if you can fetch both parent/child. You can certainly try
>>> by querying against the entire index (and therefore querying against your
>>> parent/child types), but we've never had any success with this. What we did
>>> to get around this was to denormalize the child documents, and let the
>>> parent be used only for matching purposes.
>>>
>>> On Wednesday, January 14, 2015 at 7:36:38 AM UTC-8, buddarapu nagaraju
>>> wrote:
>>>>
>>>> If some one has some ideas please let me know
>>>>
>>>> On Wednesday, 14 January 2015 04:16:00 UTC-5, buddarapu nagaraju wrote:
>>>>>
>>>>> All I will be knowing in API request is bool params to know whether to
>>>>> get family docs or not and query that user entered so I need to construct
>>>>> query that gets all family documents for qualified documents for given
>>>>> query if bool param is true and another query that just get the qualified
>>>>> documents
>>>>>
>>>>> On Wednesday, 14 January 2015 01:51:47 UTC-5, buddarapu nagaraju wrote:
>>>>>>
>>>>>> Hi,
>>>>>> I have question on document relations
>>>>>>
>>>>>> one document can have multiple child's. and now I have to address
>>>>>> below searches and achieve the mentioned expected results .
>>>>>>
>>>>>> 1)
>>>>>> search on any child documents(meaning have a query that qualifies
>>>>>> child documents) and retrieve the child ,parent and all of the child's of
>>>>>> the parents
>>>>>>
>>>>>> 2)
>>>>>>
>>>>>> search on any parent documents and retrieve parent and all of the
>>>>>> child documents
>>>>>>
>>>>>> 3) search on any parent documents and just retrieve only qualified
>>>>>> parent documents
>>>>>>
>>>>>> 4) search on any child documents and just retrieve only qualified
>>>>>> child documents
>>>>>>
>>>>>> Is there any existing feature that help in achieving this ? any ideas
>>>>>> /thoughts would be very useful ?
>>>>>> also please provide some sample code if possible
>>>>>>
>>>>>  --
> 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/X1JCuytcz0s/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> elasticsearch+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/aab1b66b-36aa-47a7-a467-2680b64c2e6a%40googlegroups.com
> <https://groups.google.com/d/msgid/elasticsearch/aab1b66b-36aa-47a7-a467-2680b64c2e6a%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/CAFtuXXK2LF1pvfTGkKakQmp6QBdg2dUCzYbKTseN3X7X-xCUfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all docs in a family ?

2015-01-14 Thread buddarapu nagaraju
my understanding is nested objects (including nested filter and join) also 
doesnt help in this regard , correct me if am wrong 

On Wednesday, 14 January 2015 14:31:22 UTC-5, Ed Kim wrote:
>
> I'm not sure if you can fetch both parent/child. You can certainly try by 
> querying against the entire index (and therefore querying against your 
> parent/child types), but we've never had any success with this. What we did 
> to get around this was to denormalize the child documents, and let the 
> parent be used only for matching purposes.
>
> On Wednesday, January 14, 2015 at 7:36:38 AM UTC-8, buddarapu nagaraju 
> wrote:
>>
>> If some one has some ideas please let me know
>>
>> On Wednesday, 14 January 2015 04:16:00 UTC-5, buddarapu nagaraju wrote:
>>>
>>> All I will be knowing in API request is bool params to know whether to 
>>> get family docs or not and query that user entered so I need to construct 
>>> query that gets all family documents for qualified documents for given 
>>> query if bool param is true and another query that just get the qualified 
>>> documents 
>>>
>>> On Wednesday, 14 January 2015 01:51:47 UTC-5, buddarapu nagaraju wrote:
>>>>
>>>> Hi,
>>>> I have question on document relations
>>>>
>>>> one document can have multiple child's. and now I have to address below 
>>>> searches and achieve the mentioned expected results .
>>>>
>>>> 1)
>>>> search on any child documents(meaning have a query that qualifies child 
>>>> documents) and retrieve the child ,parent and all of the child's of the 
>>>> parents
>>>>
>>>> 2)
>>>>
>>>> search on any parent documents and retrieve parent and all of the child 
>>>> documents
>>>>
>>>> 3) search on any parent documents and just retrieve only qualified 
>>>> parent documents
>>>>
>>>> 4) search on any child documents and just retrieve only qualified child 
>>>> documents
>>>>
>>>> Is there any existing feature that help in achieving this ? any ideas 
>>>> /thoughts would be very useful ?
>>>> also please provide some sample code if possible
>>>>
>>>

-- 
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/9c45f125-bea8-4767-8eb5-69d7e5329972%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Nested objects and join

2015-01-14 Thread buddarapu nagaraju
Can some one help in understanding the nested objects and join flag 
mentioned in below link

http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-nested-filter.html

my understanding from tests I did  is that entire nested object will be 
returned if root document qualifies or nested document qualifies.

Is it possible to just get the nested objected for the queries that just 
qualifies nested object?

Is is possible to just get the root object for the queries that just 
qualifies root object?

what is the exact use of join mentioned in above link ?

 

-- 
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/db78fe04-f8ec-4a33-9ece-9fdb3251a35e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all docs in a family ?

2015-01-14 Thread buddarapu nagaraju
If some one has some ideas please let me know

On Wednesday, 14 January 2015 04:16:00 UTC-5, buddarapu nagaraju wrote:
>
> All I will be knowing in API request is bool params to know whether to get 
> family docs or not and query that user entered so I need to construct query 
> that gets all family documents for qualified documents for given query if 
> bool param is true and another query that just get the qualified documents 
>
> On Wednesday, 14 January 2015 01:51:47 UTC-5, buddarapu nagaraju wrote:
>>
>> Hi,
>> I have question on document relations
>>
>> one document can have multiple child's. and now I have to address below 
>> searches and achieve the mentioned expected results .
>>
>> 1)
>> search on any child documents(meaning have a query that qualifies child 
>> documents) and retrieve the child ,parent and all of the child's of the 
>> parents
>>
>> 2)
>>
>> search on any parent documents and retrieve parent and all of the child 
>> documents
>>
>> 3) search on any parent documents and just retrieve only qualified parent 
>> documents
>>
>> 4) search on any child documents and just retrieve only qualified child 
>> documents
>>
>> Is there any existing feature that help in achieving this ? any ideas 
>> /thoughts would be very useful ?
>> also please provide some sample code if possible
>>
>

-- 
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/71c19344-017b-4341-96e6-be003cb2be3e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Help needed for dynamic field creation after index creation

2015-01-14 Thread buddarapu nagaraju

Hi David,

We have below document structure 

Document 
{
Author,
Parent,
FamilyId,
Field3,
Field4,
Field5,
List DynamicFields;
}

In my system I know what are the static fields so defined them as a 
properties using nest annotations .

Now there are some dynamic fields which can be created by user at any point 
after index creation and these field and values am having in DynamicFields 
property .

Now my question is how to handle the field mapping in index for new dynamic 
field ?

Does the key in dynamic fields property inferred when ingestion going on ?

Please help me in understanding this conceptually 

Regards,
Nagaraju
On Monday, 12 January 2015 16:28:28 UTC-5, David Pilato wrote:

> What did you try so far? I mean that dynamic mapping is a default core 
> feature of elasticsearch. What does not work for you?
>
>
>
> David
>
> Le 12 janv. 2015 à 22:17, buddarapu nagaraju  > a écrit :
>
> I have given my document structure for the time of ingestion.  My 
> requirement is to create the schema mapping for only the particular set of 
> fixed fields at the time of index creation itself, and to further update 
> the schema mapping, whenever a new dynamic field is established in my 
> system. 
>
>  
>
> Could you please validate, if this is possible with my document type and 
> its placement. Is it achievable with 1 single type in the document. I could 
> not find the appropriate documentation which can answer my query. Please 
> help 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 elasticsearc...@googlegroups.com .
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/elasticsearch/80626aec-7f34-4c8f-9649-7dc096ac8cfb%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/elasticsearch/80626aec-7f34-4c8f-9649-7dc096ac8cfb%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/009cb227-ef09-4313-b857-f172fb570c21%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Aggregation - Blank and date aggregation

2015-01-14 Thread buddarapu nagaraju
Hi ,

Can some one help me on this ?

Does term aggregation counts on blank field values ?

Does term aggregation is enough for doing date aggregation ? Or there any 
specific aggregations we have ?All I need in date aggregation is to know 
different dates and its counts ?

Regards,
Nagaraju

-- 
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/06a328c6-eead-473e-ac04-41bd04464cfc%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: How to get all docs in a family ?

2015-01-14 Thread buddarapu nagaraju
All I will be knowing in API request is bool params to know whether to get 
family docs or not and query that user entered so I need to construct query 
that gets all family documents for qualified documents for given query if 
bool param is true and another query that just get the qualified documents 

On Wednesday, 14 January 2015 01:51:47 UTC-5, buddarapu nagaraju wrote:
>
> Hi,
> I have question on document relations
>
> one document can have multiple child's. and now I have to address below 
> searches and achieve the mentioned expected results .
>
> 1)
> search on any child documents(meaning have a query that qualifies child 
> documents) and retrieve the child ,parent and all of the child's of the 
> parents
>
> 2)
>
> search on any parent documents and retrieve parent and all of the child 
> documents
>
> 3) search on any parent documents and just retrieve only qualified parent 
> documents
>
> 4) search on any child documents and just retrieve only qualified child 
> documents
>
> Is there any existing feature that help in achieving this ? any ideas 
> /thoughts would be very useful ?
> also please provide some sample code if possible
>

-- 
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/3d2af72d-adfc-4b81-8728-b9a325e69e91%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


How to get all docs in a family ?

2015-01-13 Thread buddarapu nagaraju


Hi,
I have question on document relations

one document can have multiple child's. and now I have to address below 
searches and achieve the mentioned expected results .

1)
search on any child documents(meaning have a query that qualifies child 
documents) and retrieve the child ,parent and all of the child's of the 
parents

2)

search on any parent documents and retrieve parent and all of the child 
documents

3) search on any parent documents and just retrieve only qualified parent 
documents

4) search on any child documents and just retrieve only qualified child 
documents

Is there any existing feature that help in achieving this ? any ideas 
/thoughts would be very useful ?
also please provide some sample code if possible

-- 
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/2acc2765-2fcf-4a11-b6ab-feecb1d02921%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


how to handle document relations using nest elastic search

2015-01-13 Thread buddarapu nagaraju
Hi ,

I have a scenario where I have below document structure 

Document { Id, Name,ParentId,FamilyId,Author,List of additional user custom 
fields }

and a document can have relations to another document .

For example :

we have mail thread where replies and actual mail are documents but actual 
mail is the parent and all the replies are child's.

Now have below  use cases to achieve.

1)Get the qualified replies only for the  given query .

2)Get the qualified replies and all other emails in thread (include 
families ) for given query.Here query meant to qualify the reply /replies

3)Get the qualified mail documents only for given query

4)Get the qualified mail documents and all of its replies for given query 
which qualifies the mail documents 


can you let  me know what is the best way to handle this kind of document 
relations and sample code for the nest client use .

Regards,
Nagaraju
  

-- 
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/d1c2b978-c971-4913-8e21-377c382bc52f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Handling different type of searches using elastic nest client

2015-01-13 Thread buddarapu nagaraju
Hi,

we are thinking of having generic search API in our system  which does the 
below type of searches and this API takes just the query user input  (which 
will have below mentioned query types )  and expecting valid results 

Wild card 
Proximity
Simple and compound searches  (AND ,OR)


Please suggest the sample code /methodology to implement this search API 
using elastic search nest client 

Regards,
Nagaraju

-- 
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/261df0eb-550b-41da-acf3-61d39006939b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help needed for dynamic field creation after index creation

2015-01-12 Thread buddarapu nagaraju


I have given my document structure for the time of ingestion.  My 
requirement is to create the schema mapping for only the particular set of 
fixed fields at the time of index creation itself, and to further update 
the schema mapping, whenever a new dynamic field is established in my 
system. 

 

Could you please validate, if this is possible with my document type and 
its placement. Is it achievable with 1 single type in the document. I could 
not find the appropriate documentation which can answer my query. Please 
help 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+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/80626aec-7f34-4c8f-9649-7dc096ac8cfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Help needed for index field mapping after index creation

2015-01-12 Thread buddarapu nagaraju


we have a scenario where we know set of fields that we need at the time of 
index creation .This we know how do create field mapping at time of index 
creation .

But ,
we have other scenario where users can create custom fields after index 
creation and dont know what is the field properties of the field user 
trying to create .Field properties like data type , IsGrouping and others

Not sure how to do it .? If you can help with us sample code , it will be 
big help .

Also interested knowing thoughts on document schema this case

-- 
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/0af12488-10f4-4a17-a533-79195adc0f04%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.