Comments (9)
Hi Andrea,
I'm a bit confused, given link goes to search api, but I think you are talking about the result not the query. Can you please give a detailed example about the request?
from jest.
Sorry Ferhatsb.
I was trying to say that JestResult could expose a getFacets() like SearchResponse.
SearchRequestBuilder searchRequestBuilder = new SearchRequestBuilder(esClient).setIndices(INDEX).setTypes(TYPE);
searchRequestBuilder.setQuery(QueryBuilders.termQuery("author", "a*"));
searchRequestBuilder.addFacet(FacetBuilders.termsFacet("email").field("email"));
SearchResponse searchResponse = searchRequestBuilder.execute().actionGet();
TermsFacet facet = searchResponse.getFacets().facet(TermsFacet.class, "categoryFacet");
makes sense?
from jest.
Makes sense, we need to implement all kind of facets. Let me play for a while then we can discuss API detail.
from jest.
@ferhatsb thanks very much
from jest.
Hi Andrea,
I have created a facet branch and implemented terms facet. See below about usage.
Search search = new Search(query);
search.addIndex("terms_facet");
search.addType("document");
JestResult result = client.execute(search);
List<TermsFacet> termsFacets = result.getFacets(TermsFacet.class);
TermsFacetIntegrationTest at related branch shows all details.
Waiting for your comments.
from jest.
thanks @ferhatsb it looks really good and I will give a try later
from jest.
looks awesome! Keep going on with the other Facets and merge it asap!
Thanks!
from jest.
@ferhatsb thanks for your merge
from jest.
You are welcome, please keep reporting if you spot any issues.
from jest.
Related Issues (20)
- Invalid type conversion Integer -> Double
- Why do not working the index pattern in search request
- Path to hits/total needs to be updated for ESV7 HOT 2
- update by query
- Documentation for Kerberos Authentication
- Geo distance which api can support
- Delete child documents without parent
- Node Discovery Frequency Only send to one node.
- Search query logging
- Support for alias is_write_index
- release of version 6.8.10
- How to exit main thread when executeAsync method execute completed? HOT 1
- Refactor Search to be Generic
- update gson version to latest 2.8.6?
- 在处理jejstId注解时, 注解属性存在父类无法识别
- How to add parameters on '/_search' method like this '/_search?preference=zxcvzxd123'
- io.searchbox.client.http.JestHttpClient#deserializeResponse cause oom exception
- CatResult.parseResultArray throws java.lang.UnsupportedOperationException: JsonNull
- a problem wen upgrading to ES 7
- Is this project dead? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jest.