React components. The easiest way to build a great search experience with Elasticsearch.
{
"aggs": {
"category_one": {
"nested": {
"path": "subjects"
},
"aggs": {
"inner": {
"filter": {
"terms": {
"subjects.type": [
"Category 1"
]
}
},
"aggs": {
"subjects.name": {
"terms": {
"field": "subjects.name",
"size": 50
}
}
}
}
}
},
"category_two": {
"nested": {
"path": "subjects"
},
"aggs": {
"inner": {
"filter": {
"terms": {
"subjects.type": [
"Category 2"
]
}
},
"aggs": {
"subjects.name": {
"terms": {
"field": "subjects.name",
"size": 50
}
}
}
}
}
}
},
"size": 0
}
React newbie here
Let's consider those data in Elasticsearch :
{
"name" : "Zach",
"car" : [
{
"make" : "Saturn",
"model" : "SL"
},
{
"make" : "Subaru",
"model" : "Imprezza"
}
]
}
{
"name" : "Bob",
"car" : [
{
"make" : "Saturn",
"model" : "Imprezza"
}
]
}
where car is a nested object and "make" / "model" are non-indexed keywords.
I have setup two MenuFilter components in Searchkit, both for make and for model, like this :
<MenuFilter id="make" listComponent={Select} title="make"
field="car.make" fieldOptions={{"type":"nested", options:
{"path":"car"}}} orderKey="_term" />
and
<MenuFilter id="model" listComponent={Select} title="model"
field="car.model" fieldOptions={{"type":"nested", options:
{"path":"car"}}} orderKey="_term" />
Filters are working well but they are not communicating each other, I would like to achieve a dynamic relation between the two facets, where if a "make" is selected, I only get the models related to that "make".
I see that Menu component have "include" and "bucketsTransform" props, but I am not sure how the model field should be set to have already filtered results from the make choice.
Note : I can get this easily done with a Hierarchial Menu component but I don't want it as the component is rendered like a category tree and I would like to have two distinct selectboxes in order to perform a step-by-step make => model search.
Advanced Sorting
mentioned in docs http://docs.searchkit.co/v0.9.2/docs/components/sorting/sort.html and the URL sort parameter not updating the component?
searchkit
? Thanks!
@Yassine5505_gitlab
Have you thought about the searchkit proxy? https://www.npmjs.com/package/searchkit-express
Just use the host
parameter of searchkit manager:
http://docs.searchkit.co/stable/core/SearchkitManager.html
React -> Spring -> ES -> Spring -> React should work fine!
I have created a node js web application. Now i want to make it as portable or platform independent i.e need to make it available for windows, linux and mac
We need to make it as portable..For example like DocFetcher which runs without any software and just needs JVM. Similarly The user may not know and there should not be a need to install the servers and open the app..Everything should be bundled or portable which should run in any machine
May be executable or portable apps like https://portableapps.com/apps
Please advise which is the best and easiest way to do this.
Thanks
How to convert a java standlone app to web application or access via internet?
I come across several beautiful java standalone application..example DocFetcher...However there is no web interface available.
Is there a way to make it as web application using any tool or third party plugin or server?
Is there a way to launch in the server and access as jnlp from anywhere?
What would be the best and easiest way to convert a standalone jar or desktop java application to web server...
Not going to be a request and response..Instead wanted to do the same thing which we can do in the standlone.
Please kindly advise....
how about using hugo+lunr or jekyll + lunr for the requirement
https://www.npmjs.com/package/hugo-lunr
https://gohugo.io/tools/search/#readout
https://10consulting.com/2013/03/06/jekyll-and-lunr-js-static-websites-with-powerful-full-text-search-using-javascript/
please kindly check and let me know your comments
Is it possible to integrate searchkit with any static web-site generators as separate project like web for searchkit????
https://github.com/jvilk/BrowserFS
https://github.com/Mrinaldo/Fully-frontend-search-engine
https://github.com/lucaong/minisearch
https://github.com/cebe/js-search
https://github.com/Phyks/BloomySearch
https://github.com/gatsbyjs/gatsby
https://github.com/gridsome/gridsome
joemcelroy on main
Client: Request options support… (compare)
joemcelroy on request-options-support
better documentation + requestO… changeset (compare)
dependabot[bot] on npm_and_yarn
Chore(deps): Bump next from 12.… (compare)
joemcelroy on instantsearch-client@4.1.4
(compare)
joemcelroy on main
instantsearch client 4.1.4 rele… (compare)
joemcelroy on add-client-caching
(compare)
joemcelroy on main
client side caching (#1217) (compare)