Re: Get matched keywords while searching on an analysed field

2013-12-27 Thread David Pilato
May be highlighting could help?  http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-highlighting.html --  David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 27 décembre 2013 at 10:17:46, Prince (princej...@gmail.com) a écrit:

How can I use multi_match and partial keyword

2013-12-27 Thread Nikolay Chankov
I refined my query to the following: curl -XGET 'http://localhost:9200/venues,events,offers,users/_search?pretty=true' -d ' { query : { indices : { indices : [venues, events, users, offers], query : {

Re: Get matched keywords while searching on an analysed field

2013-12-27 Thread Nikolas Everett
It would be possible to implement a highlighter that just returned which terms matched which fields but Elasticsearch doesn't have one now. I think you have two options at this point: 1. Do something hacky with highlighting like asking for the text length to be the

Re: facet_filter for boolean field does not work in TermsFacetBuilder

2013-12-27 Thread Ivan Brusic
Is the sub-type field analyzed? -- Ivan On Dec 27, 2013 1:20 AM, Chetana ambha.car...@gmail.com wrote: I have a boolean field 'flag' which I want to filter for facet field 'sub_type'. But the total count is zero though there are some documents satisfying the criteria. But if I apply

Re: How can I use multi_match and partial keyword

2013-12-27 Thread David Pilato
Could you gist a full curl recreation? -- David ;-) Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs Le 27 déc. 2013 à 17:37, Nikolay Chankov nchan...@gmail.com a écrit : Thank you for the reply David, but unfortunately it doesn't make any difference. :( On Friday, December 27,

how does facets work

2013-12-27 Thread Volker
Dear Readers I have a question about facets and doing some filtering based on facets. In the moment I am using hibernate search in combination with bobobrowse for facetting and I am thinking about switching to ES. But before that I would like to check whether I can still get the same

Re: how does facets work

2013-12-27 Thread Ivan Brusic
Facets work on the documents returned by the query. This behavior will not work in your case since you would like to gather facets on a greater set of documents, not just the ones returned by the query. To solve this issue, elasticsearch provides a post filter, which affects the result document

Re: How can I use multi_match and partial keyword

2013-12-27 Thread Nikolay Chankov
The indexes are populated from jdbc river, so I will try to create an example. The behavior is the same. HTH Here it is: curl -XDELETE 'http://localhost:9200/test_venues' curl -XPUT 'http://localhost:9200/test_venues' curl -XPUT 'http://localhost:9200/test_venues/test_venue/_mapping' -d ' {

Re: Field updates (via LUCENE-5189?)

2013-12-27 Thread Adrien Grand
Hi Otis, No, Elasticsearch doesn't expose field updates. Field updates are only supported by numeric doc values, which are single-valued. In Elasticsearch, all fields may be multi-valued so we actually use binary doc values in order to store numeric fields[1]. Moreover, field updates may not

Re: how does facets work

2013-12-27 Thread Volker
Dear Ivan thank you very much for your pointers. I will read through it and come back, if I have further questions! thanks Am Freitag, 27. Dezember 2013 18:58:13 UTC+1 schrieb Ivan Brusic: Facets work on the documents returned by the query. This behavior will not work in your case since

Re: How to change mapping name?

2013-12-27 Thread sada
-- View this message in context: http://elasticsearch-users.115913.n3.nabble.com/How-to-change-mapping-name-tp4046546p4046629.html Sent from the ElasticSearch Users mailing list archive at Nabble.com. -- You received this message because you are subscribed to the Google Groups

Throw TransportSerializationException when jdk 1.6.0_22 client connected jdk 1.7.0_45 Es server

2013-12-27 Thread liangwb2001
Hi: I setup a elasticsearch cluster with jdk 1.7.0_45, and config action.auto_create_index: false. When I used jdk 1.6.0_22 client connect the cluter, and update a document to a not existing index, it throwed TransportSerializationException:

Adding mutliple types to an index

2013-12-27 Thread jsp
Hi, I have recently started playing with ES for a site search project. My search query runs against multiple tables across two databases, masterDb clientDb. So my plan is to create two indexes one for each database and then add multiple types to each index. And then finally query across those

Range query problems

2013-12-27 Thread anivlis
Hi, I want to retrive the last two days of a seller_id, the query is: { from: 0, size: 50, query: { term: { seller.id: 4 } }, filter: { range: { date_created: { from: now/d-1d, to: now,