yahnoosh / azsearch.js Goto Github PK
View Code? Open in Web Editor NEWSample UI components for Azure Search. Built to work with AzSearchStore
License: MIT License
Sample UI components for Azure Search. Built to work with AzSearchStore
License: MIT License
We should include an ability to call an intermediary API that would hide the query key from the clients should desire such behavior. This would include refactoring to make QueryKey & Service optional, and introduce a flag to enable API mode as well as API endpoint.
Question being should we pass the search parameters via query string as we do when directly calling search or (perhaps optionally) POST as JSON object.
Price, size and other numeric fields should be formatted with thousands separator in the UI.
Shouldn't show that facet bar if no facets are defined.
Pricing should be included in filters (as Range Selector) and in the results being displayed.
realestate.local.html
Since geo search is easy in Azure Search, we should make it easy to highlight this capability. Will probably look at using this google maps library as it seems to have the most polished react bindings.
Issues were reported using json promises that didn't have a .done callback. We should document and give examples of how to override searchCallback
Should update typescript sample project to have better development workflow. Should support "f5" workflow of some sort. Potentially look at having a visual studio project with this set up.
I'm trying to use the Components directly in my react application but haven't found how to do it, is there any sample on how to achieve that?
Common scenario is displaying a modal or some other sort of interaction when a result is clicked. We should think about how we want to support this.
Currently in search results, each item is wrapped in a div. This makes it impossible to use a table as the parent result element and row/columns for the results. Would require optionally passing in the element type to use in Results.tsx: return()
(see: https://github.com/EvanBoyle/AzSearch.js/blob/master/src/components/Results.tsx#L26)
With pricing being added the results can now be taller than the thumbnail. Suggest we reformat the data so it's a consistent height.
Currently the CDN hosted version of AzSearch is at 0.0.13, what is the process to update it with the latest builds?
https://cdn.jsdelivr.net/azsearch.js/0.0.13/AzSearch.bundle.js
When running the generate i'm getting the error "FAILED to parse index and create file" but unable to diagnose where the issue could be
Add ability to easily clear facet/filters.
The range filter (sqft) is visible at page load even when no search has been performed.
realestatedemo.html
should update docs to indicate that mustache templates and not handlebars templates are expected. Handlebars has additional functionality that is unsupported.
Would be great to have a drop down control that allows sorting by fields specified by the user. A few examples:
There is already the ability to set the orderby clause from azsearchstore search parameters, but it may also be worth adding a higher level api that builds sorting string, especially for geo sorting.
Right now the user just gets an error in the console. Seems like forgetting cors is a common pitfall.
Can be done by through state.results.isfetching
user may want to specify searchCallback that uses underlying fetch mechanics but only modifies the post payload.,
tslint -c tslint.json 'src/**/*.{ts,tsx}'
ERROR: src/components/SearchBox.tsx[84, 10]: Missing semicolon
ERROR: src/components/SearchBox.tsx[81, 15]: missing whitespace
n/a
Sometimes users want filtering without faceting. A good example would be the language facet for the channel9 demo
Rather than searching over multiple languages, the user wants to specify a single language to limit results to (and also always limit other facets to as well). This might make sense as a drop down similar to @m-gagne 's implementation of the orderby control. Depending on the behavior of this control, it might require changes in the search store to introduce a new facet type. We may need to modify the way clearAllFacets behaves as well. This control could probably take in a list of options, but we could probably try to list the options automatically based on the result of a facet query. Static options would probably be fine to start. This may just end up being a different way of rendering a checkbox facet with slightly different clearAll behavior.
I've already tried some examples and I've found these very verbose:
if(state.results.results && state.results.results.length) {
It looks like System.Configuration.Configuration
from .NET and I think the JS users are not accustomed to such verbosity
I would like to use NLP using LUIS and allow user to type NLP text in search box. Before sending query to search, I'd like to send query to LUIS and then based on LUIS response, format the search query and/or add filter.
How do i do that using AzSearch.js?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.