Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
37 lines (27 sloc) 1.14 KB
Indexing API.
This is going to become much more like the view API in 0.3.
Specifically, you will add attributes to a design document of your own choosing and you will be able to specify multiple transform functions. Access to results will also require the name of the design document and the view name.
{
"views": { ... }
"fulltext":
{
"view1": {
"defaults": {"field": "data", "index": "analyzed", "store": "no"},
"index": "function(doc) { var ret = new Document(); ret.add(doc.subject); ret.add(doc.body); return ret; }"
},
"view2": {
"index": "function(doc) { var ret = new Document(); doc.add(doc.subject, {"field":"subject"}); return ret; }"
}
}
}
Note also that the transform function is now called 'index' and has changed in syntax to be less Lucene-centric.
Performance
* Allow customization of mf/mmb/optimize.
Features
* LuceneDictionary/spellcheck/suggestions mode.
* _show and _list-like support for search results.
* distributed search.
* hit highlighting (lucene contrib).
* clustering (carrot2).
* JSONQuery? (http://docs.persvr.org/documentation/jsonquery)
* geospatial (need TrieRangeQuery from 2.9)
Jump to Line
Something went wrong with that request. Please try again.