Re: Top Hits for nested type field is not working..

2015-07-19 Thread vineeth mohan
. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Tue, Jun 23, 2015 at 1:30 PM, Muddadi Hemaanusha hemaanusha.bu...@gmail.com wrote: Hi, Am using fields with nested type, in the mappings I kept

Re: Multiple documents with the same _id

2015-07-19 Thread vineeth mohan
Hello David , Very interesting finding. As i see the only way for this to happen is to index the same document ID with different routing keys or parent ID's even. Have anything of these have happened while indexing ? Thanks Vineeth Mohan, Elasticsearch consultant

Re: Unable to query ES conditions from browser

2015-07-19 Thread vineeth mohan
Hello , I think that is cause you missed the _search in the second query. http://localhost:9200/one/employee/_search?q=emp_id:4318W01149 The above might work. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http

Re: multiple post filter

2015-07-19 Thread vineeth mohan
Hi , There is an bool filter https://www.elastic.co/guide/en/elasticsearch/reference/1.6/query-dsl-bool-filter.html that you can use for the same. Put in multiple filters under the must clause and it should work just fine. Thanks Vineeth Mohan, Elasticsearch consultant

Re: Script to return array for scripted metric aggregation from combine

2015-04-22 Thread vineeth mohan
} } } } Hope this helps, Colin On Tuesday, April 21, 2015 at 4:31:21 PM UTC+1, vineeth mohan wrote: Hi , For scripted metric aggregation http://www.elastic.co/guide/en/elasticsearch/reference/current/search-aggregations-metrics-scripted-metric-aggregation.html , in the example shown

Re: Combining several documents in a terms filter

2015-04-17 Thread vineeth mohan
Hello Daniel , Feel free to use should clause in bool filter http://www.elastic.co/guide/en/elasticsearch/reference/1.4/query-dsl-bool-filter.html . Here you can give multiple terms filter and each of them can point to a different document/field. Thanks Vineeth Mohan

Re: Updating an array field without a script

2015-04-15 Thread vineeth mohan
Hello Zaid , It seems so. But then you can anytime take the document , make the changes and index it back to the same docID. That does not need any scripting capability. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http

Re: kibana version

2015-04-15 Thread vineeth mohan
Hi , Kibana dont work by itself, you need to install Elasticsearch too. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Wed, Apr 15, 2015 at 11:13 AM, guoyiqi...@gmail.com wrote: Hello, Folks I

Re: Updating an array field without a script

2015-04-15 Thread vineeth mohan
-scripting.html . Or you can write a java code which does this and package it as a plugin. You can find some examples here https://github.com/imotov/elasticsearch-native-script-example. In both these case , you need to make sure this code/plugin is pushed to all the nodes. Thanks Vineeth

Re: Stop words and re indexing

2015-04-14 Thread vineeth mohan
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

Re: Stop words and re indexing

2015-04-14 Thread vineeth mohan
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

Re: Completion suggester get Exact matched token

2015-04-13 Thread vineeth mohan
and this output text and payload would be returned. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Mon, Apr 13, 2015 at 11:53 PM, Ap usc90...@gmail.com wrote: How do you get the exact matched token from

Re: regex is not working

2015-04-13 Thread vineeth mohan
, because there is not tokenizing happening. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Mon, Apr 13, 2015 at 5:14 AM, Ayman Shorman aymanshor...@gmail.com wrote: Hello, I'm trying to get exact match

Re: true embedded mode

2015-04-13 Thread vineeth mohan
the serialization/deserialization stuff. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Mon, Apr 13, 2015 at 8:37 AM, Ted Smith tedsmithgr...@gmail.com wrote: Hello: I am running ES with one Node, one

Re: Parent child creation in two different indices

2015-04-07 Thread vineeth mohan
Hello Pavan , This is not possible. The parent and child need to be on the same index and same shard. To ensure this such a rule is imposed. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Wed, Apr 8

Re: Query Syntax for proximity searches

2015-04-07 Thread vineeth mohan
value. Last one , you need to expand that to query of above format. You can find more information here - http://www.elastic.co/guide/en/elasticsearch/reference/1.x/query-dsl-query-string-query.html Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io

Re: Copy _id to another retrievable field with Query String

2015-04-06 Thread vineeth mohan
} } } Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Fri, Apr 3, 2015 at 8:42 PM, zhangju...@gmail.com wrote: Hi all, I want to make the _id searchable/retrievable and copy its value to a field

Re: Is it possible to filter on multiple fields?

2015-04-05 Thread vineeth mohan
-queries.html#bool . Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Sun, Apr 5, 2015 at 5:10 PM, Ali Akhtar ali.rac...@gmail.com wrote: Hi there, I'm able to filter on one field at a time, using

Re: Delete old content from index

2015-04-05 Thread vineeth mohan
on this document. 5. During upsert , see if the content hash has changed. If there no no change you can stop orceeding and if there is a change in content , update both the content field and the new hash content field. Thanks Vineeth Mohan, Elasticsearch consultant

Re: river jdbc plugin install for windows-not working

2015-04-05 Thread vineeth mohan
Hi , You need to copy the java jars of mysql jdbc libraries to the plugins folder. It wont otherwise work. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Mon, Apr 6, 2015 at 9:06 AM, Sanu Vimal

Re: river jdbc plugin install for windows-not working

2015-04-05 Thread vineeth mohan
Hi Sanu , Didi you perform 3rd and fourth steps told here - https://github.com/jprante/elasticsearch-river-jdbc Thanks Vineeth On Mon, Apr 6, 2015 at 9:33 AM, Sanu Vimal sanuvi...@gmail.com wrote: I have put all the files of mysql jdbc connector to the plugin/jdbc folder where my

Re: connecting over transport client with marvel in classpath

2015-04-03 Thread vineeth mohan
Hi , Is the version of marvel and Elasticsearch both complaint to each other ? Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Sat, Apr 4, 2015 at 12:17 AM, mansis...@maprtech.com wrote: We have

Re: Map fields to String

2015-04-03 Thread vineeth mohan
being more accurate. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Sat, Apr 4, 2015 at 4:09 AM, Grayson Cash cashg...@gmail.com wrote: I'm wanting to map all fields in my indices to a String. I

Re: Kibana 4 basi auth

2015-03-18 Thread vineeth mohan
Hi , You can place a NGINX or Apache and redirect request to Kibana4 nodeJS port. Its very much possible , I have done this on couple of production environments. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http

Re: Embedded fields not searchable when addressed by name and type of same name exists?

2015-03-15 Thread vineeth mohan
Hello Joel , This is a known issue. Internally each field is stored as typeName.fieldName format as type name is just an abstraction. That is one of the reason for this issue. You can find more information here - https://github.com/elastic/elasticsearch/issues/7411 Thanks Vineeth

Re: Clear deleted docs

2015-03-13 Thread vineeth mohan
are suggesting ES to prioritize those segments which have higher number of deleted documents while merging. But then if the merge policy feels it doesnt need to merge any more document , it wont perform it. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io

Re: Machine Learning / Decision Tree Learning with Elasticsearch

2015-03-12 Thread vineeth mohan
Hello Michael , There is Hadoop integration with Elasticsearch. With this integration , it can run against each feed in elasticsearch in a highly optimized way. This gives you opportunity to couple mahout library with Elasticsearch. I would advice this approach. Thanks Vineeth Mohan

Does doc['field_name'].values preserve order

2015-02-06 Thread vineeth mohan
, three ] Will doc['arrayData'].values give results in the order in which it was index , that is as [ one , two , three ] ? Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io) -- You received this message because

Re: Getting query count for individula fields in multi match query

2015-02-04 Thread vineeth mohan
: { query: { match: { subject: this is a test } } } } } } Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io) On Wed, Feb 4, 2015 at 6:44 PM, Anand kumar

Re: Too many open files issue

2015-01-30 Thread vineeth mohan
Hi , You will need to increase the number of maximum open file descriptors from OS. You can find more info here - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/setup-configuration.html#file-descriptors Thanks Vineeth Mohan, Elasticsearch

Re: any chance to get rid of this query_string?

2015-01-29 Thread vineeth mohan
} } ] } }, query: { multi_match: { query: SearchQuery, fields: [ account.name, group.title, post.content ] } } } } } Thanks Vineeth Mohan, Elasticsearch consultant

Re: Issues when running groovy script for function_score?

2015-01-27 Thread vineeth mohan
Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Wed, Jan 28, 2015 at 9:14 AM, Panzer appythonch...@gmail.com wrote: def score = 0; // terms: list of tokens for(term in terms) { q_term_freq = terms​.countBy

Re: How to emit console.log output when using javascript-lang for custom scripts?

2015-01-16 Thread vineeth mohan
.*; * *ESLogger logger=ESLoggerFactory.getLogger('myscript'); * *logger.info http://logger.info('This is a log message'); * LINK - https://github.com/elasticsearch/elasticsearch/issues/9068 Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch

Re: Shards not replicating to two nodes

2015-01-16 Thread vineeth mohan
Hi , Can you check the following - 1. Disk space on the machine where shards are not getting used. 2. See the configuration of the node in those machines. See if the client node only config is enabled in the config. Thanks Vineeth On Fri, Jan 16, 2015 at 5:20 PM, Stewart Gray

Re: Shards not replicating

2015-01-12 Thread vineeth mohan
Hello Chetan , Can you confirm that there are enough disk space on that machine to replicate the shard. Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch service provider http://qbox.io/) On Mon, Jan 12, 2015 at 4:24 PM, Chetan Dev

Re: Queries vs Filters

2015-01-12 Thread vineeth mohan
: { query : this AND that OR thus } }, _cache : false } Filter cache disable - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-query-filter.html#_caching_15 Thanks Vineeth Mohan

Re: Rejected execution exception for multiple parallel requests.

2015-01-07 Thread vineeth mohan
Hi , I have answered this question in stackoverflow at - http://stackoverflow.com/questions/27793530/esrejectedexecutionexception-in-elasticsearch-for-parallel-search/27793810#27793810 Thanks Vineeth Mohan, Elasticsearch consultant, qbox.io ( Elasticsearch

Re: Delete all the snapshots in a repository

2014-12-26 Thread vineeth mohan
Hi , Can you remove the snapshot name and try again - *curl -XDELETE localhost:9200/_snapshot/_all?pretty* Thanks Vineeth On Fri, Dec 26, 2014 at 7:53 PM, bplsi...@chaordicsystems.com wrote: Hello, I know the *delete all* kind of operations are the ones to avoid, but in this

Re: Cascading cluster failure

2014-12-25 Thread vineeth mohan
: Thanks for reading vineeth. That was my initial thought but I couldn't find any old gc during the outage. Each es node has 32 gigs. Each box has 128gigs split between 2 es nodes(32G each) and file system cache (64G). On Wed, Dec 24, 2014 at 4:49 PM, vineeth mohan vm.vine...@gmail.com wrote: Hi

Re: Cascading cluster failure

2014-12-25 Thread vineeth mohan
, 2014, at 11:12 PM, vineeth mohan vm.vineethmo...@gmail.com wrote: Hello Abhishek , Can you try to correlate merge operation of shards and this time of cascading failures ? I feel there is a correlation between both. If so , we can do some optimization on that side. Thanks

Re: Cascading cluster failure

2014-12-24 Thread vineeth mohan
Hi , What is the memory for each of these machines ? Also see if there is any correlation between garbage collection and the time this anomaly happens. Chances are that the stop the world time might block the ping for sometime and the cluster might feel some nodes are gone. Thanks

Re: Filtered dsl return different results for num of query

2014-12-24 Thread vineeth mohan
Hi , Filters don't do scoring which means the constrains inside a filter is not used to determine the order of the results. But query does do scoring and determines the order in which results should be placed. Thanks Vineeth On Wed, Dec 24, 2014 at 12:52 PM, Hajime

Re: Filtered dsl return different results for num of query

2014-12-24 Thread vineeth mohan
? By the way, I try every strategy mention in here, but the above three queries give different results anyway. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-filtered-query.html#_filter_strategy On Wed, Dec 24, 2014 at 9:34 PM, vineeth mohan vm.vineethmo

Re: Getting error while starting server

2014-12-23 Thread vineeth mohan
Hi , Make sure all the dependent JAR files are present. Its missing some of these. Thanks Vineeth On Tue, Dec 23, 2014 at 11:15 AM, Vijayakumari B N vijayakumari...@gmail.com wrote: Hi, I get the below error when i tried to restart my jboss server after integrating with

Re: Getting error while starting server

2014-12-23 Thread vineeth mohan
think we need any other jars apart from this and my elastic server is also running. Please let me know if there are any additional jars which i need to add. Thanks, Vijaya On Tuesday, December 23, 2014 2:38:43 PM UTC+5:30, vineeth mohan wrote: Hi , Make sure all the dependent JAR files

Re: Fielddata cache and doc values

2014-12-23 Thread vineeth mohan
Hi , Yes , definitely doc values would be a better idea. As it is not 100% memory resident , it will give a lot better stability and memory optimization to the system. On the flip side, performance might go down to , say 10 to 15%. Thanks Vineeth On Tue, Dec 23, 2014 at 8:47 PM, Han

Re: Combing relevancy and trending scores

2014-12-22 Thread vineeth mohan
am missing something. On Sunday, December 21, 2014 8:01:06 PM UTC-8, vineeth mohan wrote: Hello , My advice would be to use the script function type. Inside it you can access _score which is the score given by the query and the value of the field. Mix them together in whatever logic you want

Re: transform script when indexing data

2014-12-22 Thread vineeth mohan
Hi Nick , This wont change the _source , so no point in looking there. Try script field to read the data of this field from store ( if enabled ) or reverse index. Thanks Vineeth On Mon, Dec 22, 2014 at 11:05 PM, Nick Wood nwood...@gmail.com wrote: Hello, I'm trying to implement a

Re: Combing relevancy and trending scores

2014-12-22 Thread vineeth mohan
this (or something close)? -Chris On Monday, December 22, 2014 1:34:08 PM UTC-5, vineeth mohan wrote: Hi , I dont see why it should run into performance issue. In anyway you do it , the _score and score due to a field have to be computed/loaded. If you precompile your script by placing it in config

Re: ES stopped logging

2014-12-21 Thread vineeth mohan
Hi , Can you do a ls /etc/elasticsearch ps aux | grep Elasticsearch Thanks Vineeth On Fri, Dec 19, 2014 at 10:13 PM, digital...@gmail.com wrote: Topic says itI'm not seeing any log files in /var/log/elasticsearch...ES is running, and I haven't modified anything since

Re: Updating Elastic search index along with DB

2014-12-21 Thread vineeth mohan
Hi , You cna use JDBC river to bridge ES and DB - https://github.com/jprante/elasticsearch-river-jdbc Only data inside the DB would flow to ES. Thanks Vineeth On Fri, Dec 19, 2014 at 10:43 PM, teseter iamrav...@gmail.com wrote: Hi To fasten the search operations we are planning to

Re: Elasticsearch taking a long time for garbage collection

2014-12-21 Thread vineeth mohan
Hello , Use Sun Java , it will help a lot. Second there has been back pressure from Elasticsearch to logstash. To handle that , try increasing bulk/index queue size of Elasticsearch. But then that wont help much as its memory intesnive or at max , it might give you some extra time. Best approach

Re: Sum of total term frequency in ONE document

2014-12-20 Thread vineeth mohan
Hi , Why dont you use script fields to access this value - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-script-fields.html#search-request-script-fields Thanks Vineeth On Wed, Dec 17, 2014 at 2:57 PM, valerij.vasilce...@googlemail.com wrote:

Re: FiltrES - A language that compiles to ElasticSearch Query DSL

2014-12-20 Thread vineeth mohan
Hi , How different is it from query_string query langauge. Or is it using query_string in the background. Thanks Vineeth On Wed, Dec 17, 2014 at 5:23 AM, Abe Haskins abeisgr...@abeisgreat.com wrote: Hi folks! I wanted to share FiltrES.js https://github.com/abeisgreat/FiltrES.js,

UI/Plugin to visualize output of Scoring Explain flat

2014-12-14 Thread vineeth mohan
Hi , I remember seeing a UI from a plugin or otherwise which visualizes the output of explain API for scoring as a neat d3 visualization of collapsible tree - http://bl.ocks.org/mbostock/4339083 If anyone remembers the link , please reply to this mail. Thanks Vineeth -- You

Is enabling docValues and disabling index possible

2014-12-01 Thread vineeth mohan
Hi , I have a situation where a field is only used for aggregation , its never used for searching. In such cases , it doesn't make sense for this field to go to lucene reverse index. Rather if it can be only maintained in fieldData or docValues alone . that would save me some good amount of space

Re: Best way to check a document has been indexed

2014-11-20 Thread vineeth mohan
Hi , Just check if its 200 ( Indexed ) or 201 ( Created ) . HTTP status code alone should be sufficient. Thanks Vineeth On Thu, Nov 20, 2014 at 4:01 PM, asanchez asanchez1...@gmail.com wrote: Hello, I'm developing a piece of code that inserts a document into an elastcisearch

Re: Elasticsearch relevance

2014-11-16 Thread vineeth mohan
Hello , The score is impacted by TF , IDF and the field length. - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/modules-advanced-scripting.html You need to write a small script to compute this logic via function score query. Thanks Vineeth On Fri, Nov 14, 2014

Download documents as CSV in Kibana 4

2014-11-12 Thread vineeth mohan
Hi , I would like to know what are the plans for presenting documents as table ( Like the one in Kibana 3) , in Kibana 4. One of the feature I am badly looking forward is the power to download documents as CSV from the table type from kibana 3 ( Not current data table in kibana 4). Thanks

Re: term filter failed on very long fields

2014-11-10 Thread vineeth mohan
Hello Wang , Can you disable analyzer and try again . Thanks Vineeth On Mon, Nov 10, 2014 at 2:07 PM, Wang Yong cnwangy...@gmail.com wrote: Hi folks, I was trying to do a term filter on a very long string field, maybe more then 500 bytes, but I got 0 hit. So, I am wondering

Re: What is the best practice for periodic snapshotting with awc-cloud+s3

2014-11-07 Thread vineeth mohan
Hi , There is a s3 repository plugin - https://github.com/elasticsearch/elasticsearch-cloud-aws#s3-repository Use this. The snapshots are incremental , so it should fit your purpose perfectly. Thanks Vineeth On Fri, Nov 7, 2014 at 3:22 PM, Pradeep Reddy

Re: Comparing multiple timestamp fields

2014-11-06 Thread vineeth mohan
Helli Vijay , I cant think of any straight and efficient way to implement this. But then you can write your own map reduce script ( Feature in 1.4.0) to gather this information -

Re: Obtaining TF-IDF score per each word in one doc

2014-11-05 Thread vineeth mohan
Hello Min , Use the explain flag - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-explain.html#search-request-explain Thanks Vineeth On Wed, Nov 5, 2014 at 6:32 PM, Min Cha minslo...@gmail.com wrote: Hello. As a title, I would like to obtain

Re: elasticsearch phraze term frequency .tf() containing multiple words

2014-10-28 Thread vineeth mohan
Hello Valergi , This wont work , normally becuase the string would be tokenized into green and energy. If you use shingle token filter and set it as 2 , it might work. Or in this case , you can see the position value of both the token using the script and if its next to each other , you can

Re: Aggregation on last element

2014-10-26 Thread vineeth mohan
Hello Michaël , I cant think of a way to do this in a single call. May be you should try the following (Terms aggregation on element) - (Top N hits aggregation , sort by date by asc and size = 1 ) - (Filter aggregation by type A) With this you will get the elements that you are looking for.

Re: plan for river

2014-10-26 Thread vineeth mohan
Hello Mungeol , As far as i know , the plan is to depreciate rivers and move them to logstash. Thanks Vineeth On Mon, Oct 27, 2014 at 5:19 AM, Mungeol Heo mungeol@gmail.com wrote: Hi, My question is that will es remove all river related plugin in the future? If it will, I'd

Re: Reading Epoch As @timestamp

2014-10-21 Thread vineeth mohan
Hi , What exactly do you mean by overwrite @timestamp. It would be also helpful if you can quite an example. Thanks Vineeth On Tue, Oct 21, 2014 at 5:13 PM, ES USER es.user.2...@gmail.com wrote: For the life of me my Google searching has not revealed any solution to this at least

Re: Reading Epoch As @timestamp

2014-10-21 Thread vineeth mohan
Hello Antonio , I am aware of this. The example you have quoted should actually work. Why do you feel that its not working. Thanks Vineeth On Tue, Oct 21, 2014 at 7:38 PM, Antonio Augusto Santos mkha...@gmail.com wrote: If you are using logstash to push your events do ES you need

Term query on long type failing

2014-10-20 Thread vineeth mohan
Hi , I am extracting tweets from twitter and i found the following issue. On doing a terms facet on field retweet.id , i received some user ID's. Now on doing a term query on one of the value obtained , I am not getting any result. The facet is as following - { facets: { terms: {

Re: Term query on long type failing

2014-10-20 Thread vineeth mohan
to the match[1] query instead of term should fix the issue. [1] http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html On Mon, Oct 20, 2014 at 1:40 PM, vineeth mohan vm.vineethmo...@gmail.com wrote: Hi , I am extracting tweets from twitter and i

Re: Write-Read question

2014-10-20 Thread vineeth mohan
Hello Jack , What do you mean by fetching it back , is it a GET or a search. GET is realtime and Search is near realtime. You can use the refresh flag while indexing to make sure search is also real time , but its expensive. Thanks Vineeth On Mon, Oct 20, 2014 at 8:59 PM, Jack Park

Re: validation failed, source is missing? what does this mean

2014-10-03 Thread vineeth mohan
Hi , Can you paste the complete curl query. I see this when i forget to put the -d flag for data. Thanks Vineeth On Fri, Oct 3, 2014 at 9:04 PM, bitsofinf...@gmail.com wrote: Hi, What does this error mean (es 1.3.2) when I do a delete by query? DELETE such as

Re: Getting more than just a score out of a search script

2014-10-03 Thread vineeth mohan
more than a single value into the score, but those are really nasty hacks. Klaus On Thursday, 2 October 2014 15:39:36 UTC+2, vineeth mohan wrote: Hello Klaus , For document flagging or similar feature , you can use script filter with caching to achieve something close to it - http

Auto complete to return results for empty text

2014-10-03 Thread vineeth mohan
Hi , In the auto complete , I would like to see some results to be returned even if the text is empty. I tried all knobs documented but couldn't achieve this. Is there anyway to achieve this without using aggregation but auto complete itself ? Thanks Vineeth -- You received this

Re: Getting more than just a score out of a search script

2014-10-02 Thread vineeth mohan
Hello Klaus , For document flagging or similar feature , you can use script filter with caching to achieve something close to it - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-script-filter.html#query-dsl-script-filter Also in ES 1.4.0 , there is support for

Re: Sorting equal scores by field length?

2014-10-02 Thread vineeth mohan
Hello Lee , There is a workaround for that. You need to enabled word count and then use that in the script. Word count - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html Script in scoring -

Re: aggregate results on specific attribute

2014-09-28 Thread vineeth mohan
Hello Maarten , This is a direct use case of aggregations. Simpy use term aggregation for both fields - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-aggregations.html Thanks Vineeth On Sun, Sep 28, 2014 at 1:17 PM, Maarten Roosendaal

Re: How can I define a Username and password for login?

2014-09-26 Thread vineeth mohan
Hello , ELK stack doesn't give inherent support for this , but then there are a couple of open source projects you can use. https://github.com/fangli/kibana-authentication-proxy works fine for me. Or else a solution based on Nginx will also work good. Thanks Vineeth On Fri, Sep 26,

Re: Comparing arrays

2014-09-25 Thread vineeth mohan
Hello Tim , The default similarity already have this logic in it , but then am sure there are other logics too applied for default similarity. I am not sure how to use this function logic alone for scoring. But then , in worst case you can do as follows , but am sure there should exist and

Re: Changing response from update from a script

2014-09-24 Thread vineeth mohan
Hello Jennifer , I couldn't find any feature for this. I feel this is a valid use case and i will file a bug on the same. Thanks Vineeth On Tue, Sep 9, 2014 at 7:19 PM, Jennifer Cumming addedspar...@gmail.com wrote: I have an update script that updates the contents of a nested

Re: ES JsonParseException

2014-09-18 Thread vineeth mohan
Hello , This don't have to do anything with the escape character - Try below - curl -XPUT 'http://localhost:9200/test/test/test' -d ' { rules: [ { users : [ foo\bar ] } ] }' Thanks Vineeth On Thu, Sep 18,

Re: Aggregations: Possible to return additional fields?

2014-09-18 Thread vineeth mohan
Hello James , You can try the following 1. Make the tags field nested 2. Do a 2 level aggregation with nested/term type aggregation on id attribute over name term aggregation. This way you will get all ids and the names associated with it. Thanks Vineeth On Thu, Sep 18,

Re: Question about value_count aggregation

2014-09-18 Thread vineeth mohan
Hello Sam , The title field , i presume is a single value field which means values will fail. You need to use something like doc['title'].value.length 1 Thanks Vineeth On Wed, Sep 17, 2014 at 9:11 PM, Sam Chrisinger s.chrisin...@gmail.com wrote: Hi All, I'm having trouble with a

Re: [JAVA API] Retrieve all indexes

2014-09-15 Thread vineeth mohan
Hello Luan , There are many ways to do it - Client client = new TransportClient() .addTransportAddress(new InetSocketTransportAddress(host1, 9300)); GetSettingsRequest req = new GetSettingsRequest();; GetSettingsResponse response =

Re: How to get current date in script.

2014-09-15 Thread vineeth mohan
Hello Abhishek , Something similar to this should work - { script_fields: { test: { script: doc['date'].value - new Date().getTime() * 1000 } } } Thanks Vineeth On Mon, Sep 15, 2014 at 9:41 PM, Abhishek Gupta abhi.bansa...@gmail.com wrote: Hi, I want to write a

Re: Regex queries possible ?

2014-09-12 Thread vineeth mohan
Hi , If this pattern is a single word , regex query might do the trick - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-regexp-query.html#query-dsl-regexp-query Thanks Vineeth On Fri, Sep 12, 2014 at 7:35 PM, Log Muncher railroaderslam...@gmail.com

Re: Purge the deleted documents on disk

2014-09-12 Thread vineeth mohan
Hello Wei , You can use the in optimize API - max_num_segments as 1 or only_expunge_deletes as true . OPTIMIZE - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/indices-optimize.html#indices-optimize Thanks Vineeth On Sat, Sep 13, 2014 at 5:32 AM, Wei

Re: Elasticsearch.net client, endpoint strategy?

2014-09-12 Thread vineeth mohan
Hello Lasse , Following is my idea on the whole thing - Routing - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/docs-index_.html#index-routing When a index request comes , based on the ID of the request , a hash function computes the shard to which the request has to be

Re: Elasticsearch: security concerns

2014-09-12 Thread vineeth mohan
Hello Jigish , I dont think you can achieve all of these in Elasticsearch. You can restrict the HTTP methods to GET and POST in Elasticsearch. But for most of other tasks , Nginx would be a better option. Elasticsearch jetty plugin might also help you -

Re: Simple query string does not work

2014-09-11 Thread vineeth mohan
Hello Dan , Can you paste the above as JSON. I am not exactly able to make out what is the query. Thanks Vineeth On Thu, Sep 11, 2014 at 5:50 PM, Dan da...@adena.nl wrote: Nobody? :( Op woensdag 10 september 2014 21:24:19 UTC+2 schreef Dan: Hi Guys, I have a simple query which

Re: complex nested query

2014-09-11 Thread vineeth mohan
:04,vineeth mohan vm.vineethmo...@gmail.com 写道: Hello , First you need to declare field details as nested. - http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-nested-type.html#mapping-nested-type Then do a bool query with the date range constrain and range

Re: Simple query string does not work

2014-09-11 Thread vineeth mohan
reply. {from:0,size:10,query:{field:{tags:*blaat*}},filter:{and:[{term:{representative:1}},{term:{is_gift:0}},{term:{active:1}},{terms:{website_ids:[1],execution:and}}]}} Is this enough? Thanks! Op donderdag 11 september 2014 15:08:05 UTC+2 schreef vineeth mohan: Hello Dan , Can you

Re: Aggregations across values returned by term then date histogram

2014-09-11 Thread vineeth mohan
Hello , I didn't get your question completely , but then i feel a simple date histogram query should do the trick. aggs : { {{time_interval}}: { date_histogram: { field: time, interval: {{time_interval}}, min_doc_count: 0 }

Re: complex nested query

2014-09-11 Thread vineeth mohan
problem. Thanks Best Regard! 在 2014年9月12日,0:12,vineeth mohan vm.vineethmo...@gmail.com 写道: Hello , I don't feel you can do this in a single call. What i have in mind would be 1. Run a two level aggregation query with date histogram aggregation on first level with date and term

Re: Hit Counts within a Document

2014-09-10 Thread vineeth mohan
for the term frequencies. What do you think about these cases? Thanks! Darren On Mon, Sep 8, 2014 at 11:28 AM, vineeth mohan vm.vineethmo...@gmail.com wrote: Hello Darren , Following query does what you have asked for ( replace FIELD with the field you are looking for) - { fields

Re: More Like This - Results Is Empty

2014-09-10 Thread vineeth mohan
Hello , We need more data to debug this. Can you paste the reference document you are performing MLT. Also i feel if you set min_term_freq as 1 along with min_doc_freq=1 , it should work. Thanks Vineeth On Tue, Sep 9, 2014 at 7:39 PM, phenrigomes phenrigo...@gmail.com wrote: Why

Re: Scripting and dates

2014-09-10 Thread vineeth mohan
Hello Michael , Please find the answers in the order of questions you have asked - 1. Referencing script from file system is explained here. It has very well worked for me , please double check on it -

Re: Do I need the JDBC driver

2014-09-10 Thread vineeth mohan
Hello James , I didn't fully understand your question , but i feel JDBC river might be of any use to you - https://github.com/jprante/elasticsearch-river-jdbc Thanks Vineeth On Wed, Sep 10, 2014 at 3:29 PM, James m...@employ.com wrote: Hi, I'm setting up a system where I have a

Re: Highlight works not always!

2014-09-10 Thread vineeth mohan
Hello Ramy , Can you show the mapping ( not just the index creation JSON). I need to make sure you have applied ngram on the required field. Thanks Vineeth On Wed, Sep 10, 2014 at 1:11 PM, Ramy remra...@gmail.com wrote: Can someone tell me, why the highlighting works not always? what

Re: Scripting and dates

2014-09-10 Thread vineeth mohan
Of *vineeth mohan *Sent:* Wednesday, September 10, 2014 5:14 AM *To:* elasticsearch@googlegroups.com *Subject:* Re: Scripting and dates Hello Michael , Please find the answers in the order of questions you have asked - 1. Referencing script from file system is explained here. It has

  1   2   3   >