Full-text search

Discussion in 'Pleco for Android' started by Bvo, Jun 14, 2017.

  1. Bvo

    Bvo 进士

    Hello,
    is it possible to do full-text search in Pinyin (especially in English dicts)?
     
  2. mikelove

    mikelove 皇帝 Staff Member

    Not at the moment, no.
     
  3. Bvo

    Bvo 进士

    It would be nice to see the feature in future :)
     
  4. mikelove

    mikelove 皇帝 Staff Member

    It's a bit tricky because you get so many hits, especially for pinyin searches without tones.
     
  5. Bvo

    Bvo 进士

    In my opinion full-text search is most useful to search for examples (usage), some phrases (including proverbs), etc.
    (Looking for rare chars and terms also is very useful, but that's another story).
    So it's OK if the search in Pinyin will require tone marks (or may be even no tones if more than one char/word in search?).
    Pinyin has many good sides and most useful (at least for me as a beginner) - it's easy and quick for typing.
    So in F-TS case it can be used just for quick typing and in this case tone requirement is OK (at least it's better than no Pinyin at all).

    PS: and sometimes I don't know/cannot remember how to write some phrase, but do know how it sounds (i.e. can write pinyin with tones, though it's even better if I can search a complex phrase without tones).
     
    Last edited: Jun 15, 2017
  6. Bvo

    Bvo 进士

    BTW, as I can see ABC dict is much pinyin-oriented, so currently its usage in F-TS is very limited (as no real chars provided for many things, only pinyin alone).
     
    Last edited: Jun 18, 2017
  7. mikelove

    mikelove 皇帝 Staff Member

    Well that's true about ABC, but the fields that only have pinyin are generally the sort of fields we wouldn't full-text index anyway - links to other words, e.g.

    Another practical issue is that this would add quite a bit of bulk to our dictionary databases, when we already get many many complaints about our app being too big (and are in fact working very hard to make our databases smaller) - absent a LOT of user demand for this feature, it would be tough to justify on that basis.
     
  8. Bvo

    Bvo 进士

    Ok, I see the point.
    Though I don't think the app is really big - full pro-bundle takes about 1Gb, in nowadays it's not so big for such massive functionality.
     
  9. mikelove

    mikelove 皇帝 Staff Member

    True, but especially on Android we have a *lot* of users in emerging markets where data is limited + expensive. We could always find a way to spin this off into an optional index file, though - had already been considering doing that with Cantonese support in our basic app since that's a good 5 MB or so worth of data + indexing we could drop.
     
    alex_hk90 likes this.

Share This Page