Closed Bug 620760 Opened 14 years ago Closed 12 years ago

Find a way to make manufacturers and devices searchable more easily

Categories

(Input :: General, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED WORKSFORME

People

(Reporter: wenzel, Unassigned)

References

Details

(Whiteboard: [redis])

Currently, we hard-code every known manufacturer and device in order to be able to search for them, as search works something like: "Samsung" -> CRC32 -> Sphinx: search for this number. So we need to know what to look for in order to make Sphinx search for this. I propose we find a way to automate this somehow. Two ideas: - auto-generate the list of "known" devices from the feedback database, and keep it in memcache for a long time. This adds a performance hit to one request, but should be relatively slim since we'll add an index to the manufacturer / device field. - search case-insensitively. My Samsung device sends "samsung" as its manufacturer, and I don't think this can currently be found, because our this spelling is not in the "known" list.
We can do this via redis.
Whiteboard: [redis]
(In reply to comment #1) > We can do this via redis. We should talk one of these days (tomorrow?) about what redis can do for us. Another option would be migrating to mongodb, but that involves getting rid of all MySQL-ness in our code. So if adding redis to the mix is a less invasive change, that'd be the way to go. If redis also helps us do something useful in bug 623650, thumbs up.
I'd rather not abort mysql - it does what it's doing well. I'd have all submissions trigger a post-save hook that just adds random metadata to redis. Think of redis as memcached with pythonic like structures: lists, sets, dictionaries, etc.
Target Milestone: 3.0 → 3.1
Target Milestone: 3.1 → ---
Blocks: 622131
Component: Input → General
Product: Webtools → Input
There's a lot of messages on mobile that are unknown. It's been like that for awhile and it's just going to get worse. We should nip this in the bud before it gets really bad.
Target Milestone: --- → 4.x
This isn't an issue anymore since we no longer use Sphinx search. Closing out as WORKSFORME.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.