We're moving the community discussions to github.com/appbaseio/reactivesearch/discussions.
bietkul on v1.13.0-vue
bietkul on next
build(vue): v1.13.0 (compare)
release-drafter[bot] on v3.17.0
bietkul on next
fix(vue): popular suggestions w… build(web): v3.17.0 (compare)
bietkul on next
feat: icons added for recent & … (compare)
Can we customize SingleDropdownList's defaultQuery in typescript? I am getting a TypeError: props.setDefaultQuery is not a function:
TypeError: props.setDefaultQuery is not a function
at updateDefaultQuery
(/app/node_modules/
appbaseio/reactivecore/lib/utils/helper.js:1:2246
at updateInternalQuery
(/app/node_modules/
appbaseio/reactivecore/lib/utils/helper.js:1:11953
at SingleDropdownList.updateDefaultQuery (/app/node_modules/
appbaseio/reactivesearch/lib/components/list/SingleDropdownList.js:375:35
at SingleDropdownList.updateQueryOptions (/app/node_modules/
appbaseio/reactivesearch/lib/components/list/SingleDropdownList.js:390:11
at new SingleDropdownList (/app/node_modules/
appbaseio/reactivesearch/lib/components/list/SingleDropdownList.js:83:9
Is this a bug in reacitvecore?
My code for defaultQuery works as expected in javascript but has error in typescript:
defaultQuery={function() {
return {
aggs: {
''ProjectNumber.keyword': {
terms: {
script: {
inline:
"doc['ProjectNumber.keyword'].size() == 0 ? '': doc['ProjectNumber.keyword'].value.substring(0,2)", lang: 'painless',
},
order: {
_count: 'desc',
},
},
},
},
};
}}
Should I file a Github issue? Any help is appreciated.
customQuery
to pre-filter the results by an attribute before incorporating SelectedFilter
? similar to facetFilters
in Algolia’s Configure
object.Hi All,
First time poster...I have a few questions - which I am hoping you guys can help with.
Environment: Hosting my own Elasticsearch 7.6 database and have installed ReactiveSearch to surface the data.
I have a search page built using ReactiveSearch - and as soon as I load it - it is returning 10000 hits (paginated) from my db and this is before I have even entered any search criteria into the Searchbox
I don't want it to show the data until the user has entered their search criteria and hit enter....
How do I stop the data rendering automatically? If anything just a blank page ... or I can display an image...
One of my fields in my database is a description field with lots of text - but is neatly formatted with carriage returns. When displaying that field in ReactiveSearch - it literally removes any formatting and is just one paragrah of text which makes it hard to read....Is there a way to retain the formatting? Running the same query in Kibana - retains the format.
A really basic one...as noted I am self hosting my ES database and have downloaded and installed Appbase.io ReactiveSearch locally. Does this make any connection back to appbase.io servers/external location? I am fully self-hosted as far as I know...but i dont know the inner workings of appbase.io ReactiveSearch to know for certain if any calls are made back?
Many Thanks
Hello there
How can I customize the single list component without changing its behaviour?
I set my query to return nested aggregations and I want to use those aggregations as labels without changing the key.
I;m working with Vue. I tried doing the "slot" thing but it messes up some of the default behaviour of the component.
Hello everyone,
I hope you are all doing well.
We are having a critical issue which prevents us from using the ReactiveList object.
We are trying to render an object res.demandes which contains an array of objects.
When using {res.demandes[0].ccam}, this works and the object is correctly rendered.
However, we would like to print the entire list (res.demandes[0].ccam, res.demandes[1].ccam, res.demandes[2].ccam etc....), but as the length of the list differs depending on each item, we are not able to print the dynamic lis.
When using {res.demandes}, the computer crashes :(
Example working:
<ReactiveList
componentId="SearchResult"
size={100}
react={{
and: ['NUMDOS', 'SearchResult', 'RechercheApp']
}}
renderItem={(res) =>
<div>
Patient :{res.numdos}
<br></br>Sexe : {res.sexe}
<br></br>Liste: {res.demandes.ccam)
<br></br>
<ButtonGroup aria-label="Basic example">
<Button variant="success" onClick={this.Ajouter_tout_au_panier.bind(res)} >Ajouter la sélection à la liste</Button>
</ButtonGroup>
<br></br>
</div>
}
/>
Example crashing:
<ReactiveList
componentId="SearchResult"
size={100}
react={{
and: ['NUMDOS', 'SearchResult', 'RechercheApp']
}}
renderItem={(res) =>
<div>
Patient :{res.numdos}
<br></br>Sexe : {res.sexe}
<br></br>Liste: {res.demandes)
<br></br>
<ButtonGroup aria-label="Basic example">
<Button variant="success" onClick={this.Ajouter_tout_au_panier.bind(res)} >Ajouter la sélection à la liste</Button>
</ButtonGroup>
<br></br>
</div>
}
/>
Could you please let us know if there is any workaround and how we could move forward?
Thank you very much,
Benoit
MultiLists
where we want to use queryFormat="or”
. We think this would make most sense to the user if all items were initially selected (rather than having “no categories selected” meaning “select all categories”). Is there a way to facilitate this?
and
conjunction of several MultiList
s with queryFormat="or”
:Hello Everyone,
we are having problem in using GeoDistanceSlider(https://docs.appbase.io/docs/reactivesearch/v3/map/geodistanceslider/) in my react application.
Actually we have the requirement to implement the geo distance search. Please consider this scenerio:
Can anyone help me on this, like how we can achieve it..
Thanks
Important Note: We are using the react as the framework and using reactivesearch component to build search interface like ReactiveList, Multilist etc
Hello Everyone,
we are having problem in using GeoDistanceSlider(https://docs.appbase.io/docs/reactivesearch/v3/map/geodistanceslider/) in my react application.
Actually we have the requirement to implement the geo distance search. Please consider this scenerio:
- We have a list of jobs in multiple locations "Montréal" etc.
- We have Multilist available for Locations on the UI.
- Then if we select any location let's say "Montréal".
- Then we also want to filter jobs in 25Km radius from "Montréal".
Can anyone help me on this, like how we can achieve it..
Thanks
Important Note: We are using the react as the framework and using reactivesearch component to build search interface like ReactiveList, Multilist etc
Any update here guys ?
suffix
https://github.com/appbaseio/searchbox/blob/2a8fce54ef90892bddfd2ba8945e3f2f0d5cb505/packages/searchbase/src/SearchComponent.js#L949
xpack.security.enabled
(which is free since may 2019) in your Elasticsearch configuration file. Set a password with bin/elasticsearch-setup-passwords interactive
and configure those credentials in the Kibana config and create a user with a read only privilege. Use the credentials of the read only user in the url you set in the reactive base.
react
prop on the list, see: https://docs.appbase.io/docs/reactivesearch/v3/advanced/reactprop/
Hi there. I'm looking to create a filterable list, essentially a "SingleDropdownList" but I am looking to allow the user to type to filter the list...
I have started implementing this but thought perhaps it's worth asking here before I get too deep in. It feels like something that someone else would have already solved...
Is anyone aware of any examples that do this already?
Due to limitations with the gitter's interface (lack of search/threading), we're moving the discussions to https://github.com/appbaseio/reactivesearch/discussions. This should help us with:
Hope to see y'all over there 👋