You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Check in in new branch feature/smartsearch/frontend
Idea:
We optimize the search function to increase useablility which is pretty broke right now.
Implementation:
do the whole logic in jQuerys keyup() function.
we do an ajax requests with the fields: keyword, actualTag, prevTags.
Value Description:
The values are in format :tag1, tag2, tag3: Keyword
Both tags and keyword are not mandatory, but one of each MUST be given.
Whole input content is Keyword if the first character is not ':'
keyword: is the keyword itself (can actually be multiple words, but we don't care).
actualTag: is the tag the user is currently writing
prevTags: tags b4 the actualTags
If the first character of the input value is ':'
Tags are enabled, if not tags are disabled (if user deletes character 1 and places ':', the logic is up and running again!)
if no tags are enabled:
set actualTag and prevTags to null, keyword becomes 'keyword' value
The response will be a json ecoded list auf all tags with that keyword - append it.
if tags are enabled:
set actualTag to the tag which has no closing ':' or ',' - you will get response data for it - autocomplete the tag ("select box" and markdowned text, just like google) - append content if you have a response for it.
all prevTags are stored in an array - send them json encoded with the tag prevTags.
if Tags + keyword are aviable
set actualTag to null and send keyword + tags, as described obove to the route.
The text was updated successfully, but these errors were encountered:
Check in
Check in in new branch feature/smartsearch/frontend
Idea:
We optimize the search function to increase useablility which is pretty broke right now.
Implementation:
do the whole logic in jQuerys keyup() function.
we do an ajax requests with the fields: keyword, actualTag, prevTags.
Value Description:
The values are in format
:tag1, tag2, tag3: Keyword
Both tags and keyword are not mandatory, but one of each MUST be given.
Whole input content is Keyword if the first character is not ':'
keyword: is the keyword itself (can actually be multiple words, but we don't care).
actualTag: is the tag the user is currently writing
prevTags: tags b4 the actualTags
If the first character of the input value is ':'
Tags are enabled, if not tags are disabled (if user deletes character 1 and places ':', the logic is up and running again!)
if no tags are enabled:
set actualTag and prevTags to null, keyword becomes 'keyword' value
The response will be a json ecoded list auf all tags with that keyword - append it.
if tags are enabled:
set actualTag to the tag which has no closing ':' or ',' - you will get response data for it - autocomplete the tag ("select box" and markdowned text, just like google) - append content if you have a response for it.
all prevTags are stored in an array - send them json encoded with the tag prevTags.
if Tags + keyword are aviable
set actualTag to null and send keyword + tags, as described obove to the route.
The text was updated successfully, but these errors were encountered: