Closed
Bug 682140
Opened 15 years ago
Closed 13 years ago
Filtered results for ES on khan don't match results on prod
Categories
(Socorro :: General, task)
Socorro
General
Tracking
(Not tracked)
RESOLVED
INVALID
People
(Reporter: mbrandt, Assigned: adrian)
Details
Attachments
(1 file)
|
715 bytes,
patch
|
brandon
:
review+
|
Details | Diff | Splinter Review |
khan returns 24 results whereas production returns 11.
The filtered results don't match
http://agaudebert.khan.mozilla.org/query/query?product=Firefox&version=Firefox:8.0a1&range_value=1&range_unit=days&date=08/14/2011+00:00:00&query_search=signature&query_type=exact&query=mozalloc_abort+|+NS_DebugBreak_P+|+X11Error&reason=&build_id=&process_type=any&hang_type=any&do_query=1
and
https://crash-stats.mozilla.com/query/query?product=Firefox&version=Firefox:8.0a1&range_value=1&range_unit=days&date=08/14/2011+00:00:00&query_search=signature&query_type=exact&query=mozalloc_abort+|+NS_DebugBreak_P+|+X11Error&reason=&build_id=&process_type=any&hang_type=any&do_query=1
| Assignee | ||
Comment 1•15 years ago
|
||
This is due to the way I filter products with ElasticSearch. We get results from the product called Firefox-Trunk when searching for Firefox only.
The best (and only, so far) way to solve this would be to change the mapping of the 'product' field to add a non-analyzed field, so I can easily search for 'Firefox' only.
Anurag, I didn't find any other solutions to solve this, and I believe that re-indexing, even if it's a pain, is the easiest and cleanest solution we have. I couldn't test it either so if you can help me doing it I would really appreciate. To test it I would need an ES instance using the new mapping and containing crashes with product = Firefox and Firefox-Trunk.
If you can help me with setting this up, it won't take too long for me to change my code and make sure it works. If you cannot do it, I will try to find some time over the weekend to do it, and I'll let you know how it goes.
Comment 2•15 years ago
|
||
@adrian: i can start the reindexing in couple of hours.
| Assignee | ||
Comment 3•15 years ago
|
||
@aphakde: As I told you I'm out for the weekend, so do it whenever it's easiest for you. Once it's done I'll fix the search and make a patch.
Comment 4•15 years ago
|
||
(In reply to Adrian Gaudebert [:adrian] from comment #1)
> This is due to the way I filter products with ElasticSearch. We get results
> from the product called Firefox-Trunk when searching for Firefox only.
Yup, with product=Firefox, getting those "Firefox-Trunk" things is unexpected. Without a product in the query, it would be fine.
Comment 5•15 years ago
|
||
@adrian:
indexed 10m docs so far, should be done by 2nite.
"product": {
"type": "string",
"index": "not_analyzed"
},
Updated•15 years ago
|
Target Milestone: 2.2.2 → 2.2.3
| Assignee | ||
Comment 6•15 years ago
|
||
This patch is very very small as the main work to resolve this bug was done directly on ElasticSearch: Anurag changed the mapping so the product field is both analyzed and not analyzed, which allows me to filter by this entire field instead of by terms. This way, Firefox-Trunk-like results will no more appear when asking for Firefox only.
Assignee: nobody → adrian
| Assignee | ||
Comment 7•15 years ago
|
||
Comment on attachment 556996 [details] [diff] [review]
Use not analyzed product field in ES
Review of attachment 556996 [details] [diff] [review]:
-----------------------------------------------------------------
Ask Brandon to review.
Attachment #556996 -
Flags: review?(bsavage)
Updated•15 years ago
|
Attachment #556996 -
Flags: review?(bsavage) → review+
| Assignee | ||
Comment 8•15 years ago
|
||
Last patch landed on trunk with commit r3485: http://code.google.com/p/socorro/source/detail?r=3485
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → FIXED
| Reporter | ||
Comment 9•15 years ago
|
||
Sadly reopening, this query 500's:
Steps to reproduce:
http://agaudebert.khan.mozilla.org/query/query?product=Firefox&version=Firefox:8.0a1&range_value=1&range_unit=days&date=08/14/2011+00:00:00&query_search=signature&query_type=exact&query=mozalloc_abort+|+NS_DebugBreak_P+|+X11Error&reason=&build_id=&process_type=any&hang_type=any&do_query=1
Results in:
[11:17:59.423] GET http://agaudebert.khan.mozilla.org/query/query?product=Firefox&version=Firefox:8.0a1&range_value=1&range_unit=days&date=08/14/2011+00:00:00&query_search=signature&query_type=exact&query=mozalloc_abort+|+NS_DebugBreak_P+|+X11Error&reason=&build_id=&process_type=any&hang_type=any&do_query=1 [HTTP/1.1 500 Internal Server Error 67ms]
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
| Reporter | ||
Comment 10•15 years ago
|
||
Thanks Adrian, this is now working correctly on your khan instance. Let's wait until this properly lands on dev/stage and then we'll bump it to verified.
| Assignee | ||
Comment 11•15 years ago
|
||
We're waiting for a link to be opened between dev/stage and ES to be able to QA it.
Updated•15 years ago
|
Target Milestone: 2.2.3 → 2.3
Updated•15 years ago
|
Target Milestone: 2.3 → 2.4
Updated•14 years ago
|
Target Milestone: 2.4 → ---
Updated•14 years ago
|
Component: Socorro → General
Product: Webtools → Socorro
| Assignee | ||
Comment 12•13 years ago
|
||
This is old and probably invalid now. We'll open a new bug if we hit this problem again.
Status: REOPENED → RESOLVED
Closed: 15 years ago → 13 years ago
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•