iOS 开发实用技术导航
NSHipster 中文版
http://nshipster.cn/
cocos2d 开源 2D 游戏引擎
http://www.cocos2d-iphone.org/
CocoaPods
http://cocoapods.org/
Google Analytics for Mobile 统计解决方案
http://code.google.com/mobile/analytics/
WWDC
https://developer.apple.com/wwdc/
Design Guides and Resources
https://developer.apple.com/design/
Transcripts of WWDC sessions
http://asciiwwdc.com
Cocoa with Love
http://cocoawithlove.com/
Cocoa Dev Central
http://cocoadevcentral.com/
NSHipster
http://nshipster.com/
Style Guides
Google Objective-C Style Guide
NYTimes Objective-C Style Guide
Useful Tools and Services
Charles Web Debugging Proxy
Smore
clockwerk
V2EX  ›  iDev

ios 本地模糊检索城市名怎么做更好

  •  
  •   clockwerk · Jul 31, 2015 · 3218 views
    This topic created in 3944 days ago, the information mentioned may be changed or developed.

    当前的做法是本地建了一个db文件,fmdb检索,但是中觉得还奇怪,一共不到一万的数据量,引入一个db库好蠢啊。。。。求建议

    5 replies    2015-07-31 11:24:01 +08:00
    ma125125t
        1
    ma125125t  
       Jul 31, 2015
    plist文件存Key-Value,或者用 resource 里面的 geojson file 和strings file 存 json 或 string 都可以阿
    czheo
        2
    czheo  
       Jul 31, 2015
    那存个plist文件?
    clockwerk
        3
    clockwerk  
    OP
       Jul 31, 2015
    @ma125125t
    @czheo 存plist模糊检索好弄嘛?
    magicyu1986
        4
    magicyu1986  
       Jul 31, 2015
    做模糊检索的话,如果用了中文分词,索引很大的,都装内存里有点浪费吧,还是弄个小数据库好。
    zhicheng
        5
    zhicheng  
       Jul 31, 2015
    分词个蛋,地名你做分词?
    这事就是存 sqlite ,在地名上把可能可能的模糊匹配的词汇全部加到数据库里。效果最好,定制性最好。
    甚至以达到搜腾迅出深圳的效果。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4113 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 183ms · UTC 05:10 · PVG 13:10 · LAX 22:10 · JFK 01:10
    ♥ Do have faith in what you're doing.