ft:query facets and options
Gus Riva <[email protected]>
| Newsgroups | gmane.text.xml.exist |
|---|---|
| Message-ID | <CAG92wEcuS4rhZVPM3pLY_=EtBM4GC1UyV2jX9pCjBGOOH4r-jw@mail.gmail.com> |
Hi!
Hope someone can help me. I am trying to do a full text query using the
lucene index with facets and ft:query. The documentation says that the 3°
parameter in the query can be the options as an xml fragment. For example:
let $options := <options> <query-analyzer-id>ws</query-analyzer-id> <
default-operator>and</default-operator> <phrase-slop>1</phrase-slop> <
leading-wildcard>no</leading-wildcard> <filter-rewrite>yes</filter-rewrite>
<lowercase-expanded-terms>yes</lowercase-expanded-terms> </options>
Described here:
https://exist-db.org/exist/apps/fundocs/view.html?uri=http://exist-db.org/xquery/lucene&location=java:org.exist.xquery.modules.lucene.LuceneModule#query.3
And towards the end of:
https://exist-db.org/exist/apps/doc/lucene
This is however not working for me.
The 3° parameter of ft:query can also be used with a map for facets and
fields, described also in the documentation. Like this:
let $options := map { "facets": map { "keyword": ("indexing", "facets"),
"date": [("2018", "06"), ("2018", "05")] } }
This works for me.
Ideally, I would like to do both: use the facets and fields argument, and
change the options. Is there a way to do that? Has the options function
been deprecated?
Thanks for your help!
Best,
Gustavo Fernández Riva
Universität Heidelberg
_______________________________________________
Exist-open mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/exist-open