Senryoku / Draftmancer

Multiplayer MTG Limited Simulator
https://draftmancer.com
MIT License
86 stars 32 forks source link

Improvements to card search #242

Open tooomm opened 3 years ago

tooomm commented 3 years ago
Senryoku commented 3 years ago
Senryoku commented 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.

tooomm commented 3 years ago

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:


Typed this up already when your edit appeared with the memory fix. Will report back in one hour or so.

Senryoku commented 3 years ago
tooomm commented 3 years ago

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:


Edit: 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.