-
Notifications
You must be signed in to change notification settings - Fork 11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Search bar query should auto-populate guided search fields #147
Comments
this can maybe be fixed with a callback for populating the search fields from the main bar on search. So at least after searches the main bar and the search fields will match exactly. if we do it "live" this will cause a circular callback graph and plotly dash will be mad (i.e., the search fields update the text bar and the text bar updates the search fields, all live)... |
That sounds reasonable! |
Unfortunately there are a lot of JS errors when actually implementing this callback, due to Here's a test case which just returns "test" into every search field on searching:
Gives:
When the search fields are
|
maybe have the entities disappear from the box once they click an entity or hit enter? |
actually @jdagdelen I think we can make this work really easily if a callback is able to set "value" of Do you have an idea of how we can make ESAutosuggest do this and if it would be easy? |
I think this isn't actually related to the ESAutosuggest. Can you try making a hidden Div that holds the current value of the search box fields (updated by a callback when the search box changes) and then have the value of the ESAutosuggest components updated when that hidden Div changes? |
The reason for this JS error has been fixed in the most recent version of dash_elasticsearch_autosuggest but it was not the reason the auto-population wasn't working. |
This is being benched until v3 |
I've found myself doing an initial query using the search bar, then trying to refine it using the guided search fields dropdown menu. However, the search fields don't reflect the changes in the search bar.
So I end up adding another property say, then when I search it ends up being just for that specific property rather than my previous search + new property. Quite unintuitive.
Would be nice if the search bar query was parsed into the guided search fields.
The text was updated successfully, but these errors were encountered: