Questions tagged [elasticsearch2]

6 questions
2
votes
1 answer

Build a Custom Tokenizer for elasticsearch

I'm building a custom tokenizer in response to this: Performance of doc_values field vs analysed field None of this API appears to be documented (?), so I'm going off of code samples from other plugins/tokenizers, but when I restart elastic having…
ndtreviv
  • 3,473
  • 1
  • 31
  • 45
2
votes
0 answers

Elasticsearch : Filter does not work with wildcard query

Here is my query POST indexName/test/_search { "fields" : ["Col1"], "query":{ "filtered":{ "query":{ "wildcard": { "Col1": { …
AbtPst
  • 7,778
  • 17
  • 91
  • 172
1
vote
0 answers

Elasticsearch index api for java is failing to index some of the documents when 1000-1200 documents are being indexed together from a loop

We are using elasticsearch 2.1.2. And we are reading an excel sheet row by row from a for loop and using its values to save an associated document in each iteration. But everytime this operation is performed, around 5 to 7 documents are found which…
Aftab
  • 51
  • 4
0
votes
1 answer

What if a GET request with _primary_shard preference land on a node which only have replica shards?

I was getting duplicate records in ES 2.2.1. So, I started using preference _primary_first for GET requests. But, I notice that there is no request landing on my 4th node in a cluster of 4 nodes. This node consist of two replicas. Is it the case…
Manpreet
  • 125
  • 3
  • 11
0
votes
3 answers

How to use OR in a filtered query with Elasticsearch 2.x

I am using Elasticsearch 2.4 and I am trying to get a query that behaves like the following SQL statement: SELECT * FROM countries WHERE continent='Europe' and (country='Andorra' OR cities in ['Madrid']) In Elasticsearch 1.5 I got it working using…
Ander
  • 5,093
  • 7
  • 41
  • 70
0
votes
0 answers

In BoolQueryBuilder Should clause in not working

My ES Method public VendorSearchResult searchVendors(String query, Locale country, CostType... costtypes) { try { BoolQueryBuilder bqBuilder = new BoolQueryBuilder(); bqBuilder.must(new TypeQueryBuilder(VENDOR_INDEXTYPE)); if…
Shreyas Rao B
  • 193
  • 4
  • 17