Closed mmulich closed 10 years ago
@edwoodward Should the returned query be put in the "Find Content" search box or should a new search text box be added to the page?
I'm not sure this is needed since the terms are displayed as breadcrumbs. If we put a JSon-ish query string in the search field, how helpful is that to the user?
The biggest benefits I can think of here would be fixing a typo in a limit or adding/modifying one of multiple limits.
Would it be worth revisiting http://documentcloud.github.io/visualsearch/ (breadcrumbs you can see, edit and autocomplete!)
Fixed in #591
tldr; After a search is done, the query string should be displayed in the search text box.
(More details on the data being sent from cnx-archive...) The parsed query string can be found in the returned query object as
query.limits
. This resulting value from cnx-archive is a list of parsed terms. For example, if the user types"nuclear physics" author:'Bill Nye' type:book sort:pubDate
then thequery.limits
value will be[{"text": "nuclear physics"}, {"author": "Bill Nye"}, {"type": "book"}]
. Note that thesort:pubDate
does not appear in this list. It can be found atquery.sort
aspubDate
.