Searching for "in-app" does not find an app by that title

RESOLVED WONTFIX

Status

P3
normal
RESOLVED WONTFIX
6 years ago
6 years ago

People

(Reporter: kumar, Assigned: ashort)

Tracking

2013-01-24
x86
Mac OS X
Points:
---

Details

STR
- Upload the In-App Payment Tester from inapp-pay-test.farmdev.com/manifest.webapp
- Leave the app name in tact
- Search for "in-app", wait for Ajax suggstions

Expected: the In-App Payment Tester app should be in the results but it's not. If you search for "tester" you can find it.

This may be something easily fixable in the elastic search indexing.
Clickable link to the manifest http://inapp-pay-test.farmdev.com/manifest.webapp
Allen, do you know why this happens?
Assignee: nobody → ashort
Priority: -- → P3
Target Milestone: --- → 2013-01-24
(Assignee)

Comment 3

6 years ago
Looks like our tokenizer setup discards the 'in-'.
Testing elasticsearch as described here: http://jontai.me/blog/2012/10/testing-lucene-analyzers-with-elasticsearch/

yields this result:

% curl 'http://localhost:9200/amo/_analyze?text=In-app%20payment%20tester&pretty'
{
  "tokens" : [ {
    "token" : "app",
    "start_offset" : 3,
    "end_offset" : 6,
    "type" : "<ALPHANUM>",
    "position" : 2
  }, {
    "token" : "payment",
    "start_offset" : 7,
    "end_offset" : 14,
    "type" : "<ALPHANUM>",
    "position" : 3
  }, {
    "token" : "tester",
    "start_offset" : 15,
    "end_offset" : 21,
    "type" : "<ALPHANUM>",
    "position" : 4
  } ]
}%
awesome, thanks for investigating.  Do you have recommendations?
(Assignee)

Comment 5

6 years ago
Depends on what you want to happen. Our Elasticsearch setup splits words on '-'. We could disable that and index 'in-app' as a single word. It also discards stop words like 'the', 'in', 'a', 'it', etc. We could change the stop word set.
Mmm...I don't want to get rid of the stop words, and splitting on dash makes sense elsewhere.  I guess we should wontfix this for now then.  Thanks Allen!
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → WONTFIX
Interesting, thanks for digging that up, Allen.
(Assignee)

Comment 9

6 years ago
No, because that's for decompounding only - it turns 'firebug' into 'fire', 'bug' etc.
You need to log in before you can comment on or make changes to this bug.