How to treat sorting for string fields as not_analyzed

2015-03-26 Thread pulkitsinghal
Only when performing a sort operation, I would like to treat a string field like {name: "first last"} as not_analyzed ... is this possible? -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving ema

Disabling dynamic mapping

2014-11-10 Thread pulkitsinghal
What does the json in the CURL request for this look like? The dynamic creation of mappings for unmapped types can be completely disabled by setting *index.mapper.dynamic* to false. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-dynamic-mapping.html#mapping-dynamic-

Re: Large results sets and paging for Aggregations

2014-11-09 Thread pulkitsinghal
Sharing a response I received from Igor Motov: "scroll works only to page results. paging aggs doesn't make sense since > aggs are executed on the entire result set. therefore if it managed to fit > into the memory you should just get it. paging will mean that you throw > away a lot of results

Re: Infinite scroll best practices with ES

2014-11-09 Thread pulkitsinghal
In this discussion, I will rely on this page for reference: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-scroll.html At my level, I cannot really make a recommendation but I can share some questions going through my head, which if you fill in the blanks,

Large results sets and paging for Aggregations

2014-11-09 Thread pulkitsinghal
Based on the reference docs I couldn't figure out what happens when the aggregation result set is very large. Does it get cut off? What is the upperbound? Does ES crash? I see closed issues that indicate that pagination for aggregations will not be supported (https://github.com/elasticsearch/el

Re: Can update by script be performed on query results atomically?

2014-10-14 Thread pulkitsinghal
Upon further exploration I found https://github.com/yakaz/elasticsearch-action-updatebyquery ... where the update by query API is packaged as a plugin and allows all documents with the query to be updated with a script. -- You received this message because you are subscribed to the Google Grou

Can update by script be performed on query results atomically?

2014-10-14 Thread pulkitsinghal
Just like the Update API allows us to update a document based on a script provided ... by *removing some network roundtrips* ... is it possible in ES to perform the update on all the results of a query? -- You received this message because you are subscribed to the Google Groups "elasticsearch

Re: How to find null_value in query_string like we can in missing filter

2014-08-13 Thread pulkitsinghal
Can anyone help with this comparison between missing fields in filter vs. query? On Sunday, August 3, 2014 12:18:05 PM UTC-5, pulkitsinghal wrote: > > I'm using elasticsearch v0.90.5 > > With a missing filter, we can track missing fields: > > http://www.elasticsearch.org

How to find null_value in query_string like we can in missing filter

2014-08-03 Thread pulkitsinghal
I'm using elasticsearch v0.90.5 With a missing filter, we can track missing fields: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-missing-filter.html and make sure that a null_value also counts as missing. How can we do the same in a query_string? http://www.elas

Re: Running into CORS errors when using elasticsearch-js client

2014-03-29 Thread pulkitsinghal
Yup this didn't have anything to do with the client. For anyone else who is a big fan of pairing elastisearch with APIGEE ... the solution is here: http://stackoverflow.com/questions/21193647/apigee-pre-flight-options-requests On Saturday, March 29, 2014 9:30:36 AM UTC-5, pulkitsinghal

Running into CORS errors when using elasticsearch-js client

2014-03-29 Thread pulkitsinghal
I'm running into the following error message when using elasticsearch-jsclient: > > No 'Access-Control-Allow-Origin' header is present on the requested > resource. Origin 'http://localhost:9090' is therefore not allowed access. There is a brie

Re: Are certain fields excluded from being part of "_all" grouping ?

2014-03-25 Thread pulkitsinghal
After reading up on '_all' a bit more, I now realize that its not implemented to collect the resulting tokens from fields but their "_source" values instead! So ofcourse it won't work .. boo hoo :P On Tuesday, March 25, 2014 10:53:10 AM UTC-5, pulkitsinghal wrote: &g

Are certain fields excluded from being part of "_all" grouping ?

2014-03-25 Thread pulkitsinghal
I ran the following two queries on v0.90.5: POST /my_index/product/_search > {"query":{"bool":{"must":[{"query_string":{"default_field":"*_all* > ","query":"cinna"}}]}}} > > POST /my_index/product/_search > {"query":{"bool":{"must":[{"query_string":{"default_field":"*name* > ","query":"cinna"}}

What is the best javascript client for ES with least # of dependencies?

2014-03-17 Thread pulkitsinghal
I want to use a javascript client for ES that has the least # of dependencies because it will make it easier to port it onto Parse.com as a cloud module. The more dependencies and/or files involved, the messier it looks when bringing in an existing npm module to an environment like Parse. So fa

Re: Indexing custom date format

2014-02-23 Thread pulkitsinghal
My current mapping looks like: 'sale_date': { 'format': 'dateOptionalTime', 'type': 'date' } On Sunday, February 23, 2014 4:35:36 PM UTC-6, pulkitsinghal wrote: > > All the out-of-the-box date formats are available here: > >

Indexing custom date format

2014-02-23 Thread pulkitsinghal
All the out-of-the-box date formats are available here: http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-date-format.html But other than preprocessing a custom date format before indexing the data, is there anything I can do on the mapping side to allow ES to process

Re: Using curl with bulk API: ActionRequestValidationException Validation Failed: 1: no requests added

2014-02-16 Thread pulkitsinghal
t> | > @elasticsearchfr<https://twitter.com/elasticsearchfr> > > > Le 16 février 2014 à 21:22:48, pulkitsinghal > (pulkit...@gmail.com) > a écrit: > > Whenever I try to perform a bulk import from CURL, I get an error > stating: ActionRequestValidationExceptio

Using curl with bulk API: ActionRequestValidationException Validation Failed: 1: no requests added

2014-02-16 Thread pulkitsinghal
Whenever I try to perform a bulk import from CURL, I get an error stating: ActionRequestValidationException[Validation Failed: 1: no requests added Can someone point out my mistake in this command? $ curl -u username:password -XPOST http://my.es.com:9200/_bulk -d' {"index":{"_index":"my_index_t