monovertex / ygorganizer

Source for http://ygorganizer.com
MIT License
8 stars 4 forks source link

Search improvements #3

Open monovertex opened 9 years ago

monovertex commented 9 years ago

The current search feature for card lists should become more intelligent.

It should allow to search for multiple keywords, not a single phrase. This can be achieved by breaking down search queries into words and searching by those.

Additionally, users should be able to search by a specific phrase if they wish so, using quotation marks, I would think.

Finally, the results order can be a bit improved. The results should be ordered by some sort of relevance, for example first cards that have the query in the title, then in the description. A good example for that is "Polymerization".

We should figure out if this should reset the current list ordering or keep it as a primary sort order and then sort results by relevance.

mkaatman commented 9 years ago

Maybe the first step is to define what the service will support.

Here's one idea for parameters. q is a generic search and matches across several fields. Then you support filters: name, type, attr, level, setNumber

http://ygorganizer.com/api/browse/?q=Graveyard&name=Blader&attr=Earth&type=Monster&setNumber=BP02

Once we're happy with it, we can build a UI to work with accordingly.

monovertex commented 9 years ago

What you're saying belongs in the filtering issue, #8. Here I was talking strictly about the query field, I would like to be able to do more semantic searches. For the moment the search is looking for the exact phrase, inside other strings.

Also, this is also regarding the order if the results. Filtering is a different beast.

As example for the semantic search, I could search for "nekroz summon". This should give me results that help in summoning Nekroz cards. The current search won't give really relevant results because it would search for that exact phrase.