Open tooomm opened 3 years ago
Adding oracle text also allow for some other minor improvements (better placeholders while image are loading, full text description on mouseover) for a 16% increase in DB size (and thus of most requests while drafting), maybe this is worth it? https://github.com/Senryoku/MTGADraft/pull/243
Edit: Deployed PR doesn't work because the app exceeds maximum memory usage during startup... I could try to optimize it but I'm really not sure it's worth it :)
Edit 2: I optimized application startup for memory usage, allowing it to run on heroku, if you want to give it a try.
Hmm, thanks for the fixes and checking possibilities for adding text. Storing ability keywords only could be confusing. Maybe at a later point with an improved db/memory usage, search is a nice enhancement as is already.
Only split cards are left then. 👌
Two other observations:
Did you consider exact matches only? It can be quite confusing when some parts in the middle of a word match and you get unexpected results:
At least matches that are not right at the start or ending of a word mess it up a bit. Like one would probably still want to find warewolf
when typing wolf
. Maybe that's something for a later fine tuning.
Search is english only, no matter what language one uses for card art displaying. A tiny hint in the placeholder text (Search... (EN)
), or a tooltip? It could also tell you where people can search in.
Typed this up already when your edit appeared with the memory fix. Will report back in one hour or so.
Edit 2: I optimized application startup for memory usage, allowing it to run on heroku, if you want to give it a try.
Text search works nicely, also on back sides (not split yet).
To match exact words you can type a space before/after your query, I don't think matching exact words only by default would be expected here.
Hehe, funky workaround with the space. Kinda works.
Two more:
x
to start typing a new search right awayEdit: Re oracle search...
A new use case for searching within the card text are the new Lesson
cards from STX, one wants to know how much Learn
there is in a deck to access them.
Card search is case sensitive
Back sides or different faces are not considered for the search (Probably also an issue with split/aftermath/fuse and meld)
One can not search the card text for e.g. keywords, removal effects, certain token generators etc.pp.
It can only be searched for one Type ("Human" and "Warlock" work on their own) This might not be too problematic.