yathit / ydn-db-fulltext

Full text search module for YDN-DB
30 stars 4 forks source link

Full text search does not work in IE11 #6

Closed sbiaudet closed 10 years ago

sbiaudet commented 10 years ago

After read documentation by left, right , top, .... it doesn't work and I don't understand why. I use ydn.db-i-core-e-qry-text.js downloaded from dev.yathit.com, version 1.0.4.

I've this schema

var schema = {
    fullTextCatalogs: [{
        name: 'suggested',
        lang: 'en',
        sources: [
          {
              storeName: 'workitems',
              keyPath: 'name'
          }]
    }]
    , stores: [{
        name: 'portfolios',
        keyPath: 'id'
    },
    {
        name: 'workitems',
        keyPath: 'id',
        indexes: [{
            keyPath: 'portfolioId'
        }]
    }]
};

querying works fine.

for searching I do that, but it doesn't work.

self._db.search('suggested', queryTerm).done(function (x) { complete(x); });

yathit commented 10 years ago

Your code looks fine. Your question is not clear. Can you post a runnable script on jsfiddle?

sbiaudet commented 10 years ago

I've wrote a plunker

http://plnkr.co/edit/VcQEjj4ZtE6dzj3zWkdy?p=preview

It works fine in chrome, but not in IE11. I use your library in a winrt/winjs application so with IE11.

yathit commented 10 years ago

Thanks for the example script. IE indexeddb implementation is not yet complete with IndexedDB specification, specifically full text search require multiEntry for storing invert tokens. So wait a while, it will get there. Polyfill won't be easy due to performance problem.