search for: fieldprocessor

Displaying 7 results from an estimated 7 matches for "fieldprocessor".

2016 Jan 10
1
synonym expansion for boolean prefixes.
Olly Betts <olly at survex.com> writes: > A better option for this is probably a FieldProcessor - you set one for > a prefix and the it gets passed the value and returns a Query object > for it. E.g. in lua (where you can just pass an anon function for the > FieldProcessor - we ought to support C++11 lambdas for such things): By the way, is there an online version of the FieldProce...
2015 Dec 28
3
synonym expansion for boolean prefixes.
I have an application for synonyms for tags in in notmuch, which means synonym expansion for a particular boolean prefix. I have a vague memory of Olly telling me this doesn't work, but I'm not sure about the details. My higher level goal is to support a kind of indirection with tags, where query tag:foo can really generate tag:bar or tag:fub, depending on some kind of configuration.
2016 Jan 05
2
synonym expansion for boolean prefixes.
Olly Betts <olly at survex.com> writes: > A better option for this is probably a FieldProcessor - you set one for > a prefix and the it gets passed the value and returns a Query object > for it. E.g. in lua (where you can just pass an anon function for the > FieldProcessor - we ought to support C++11 lambdas for such things): [snip] > To achieve this with synonyms in a configurab...
2016 Jan 05
0
synonym expansion for boolean prefixes.
...f it's just something we didn't consider when synonyms were added. > My higher level goal is to support a kind of indirection with tags, > where query tag:foo can really generate tag:bar or tag:fub, depending on > some kind of configuration. A better option for this is probably a FieldProcessor - you set one for a prefix and the it gets passed the value and returns a Query object for it. E.g. in lua (where you can just pass an anon function for the FieldProcessor - we ought to support C++11 lambdas for such things): require "xapian" foo_tag_term = "Kbar"...
2016 Jan 09
0
synonym expansion for boolean prefixes.
...o > from a performance point of view to be looking up foo_tag_term in > document metadata? Calling get_metadata() is pretty much exactly equivalent to reading the synonyms for a term - both read one Btree entry, just from different tables. Longer term, I wonder if synonyms should happen via FieldProcessor - that would neatly deal with how to do synonyms for different fields in a flexible way, and also allow synonyms to expand to phrases or even other types of subqueries. > > FieldProcessor isn't in 1.2.x, but then support for synonyms for boolean > > terms isn't in any version....
2018 Jul 19
1
choosing between probabilistic and boolean prefixes for terms
Hi all, public-inbox allows searching for git blob names (e.g. "badc0ffee") in patches. Initially, I chose to use add_prefix for probabilistic terms, since I assumed it could be a superset of what boolean searching offered. Unfortunately, it doesn't seem to be the case because stemming is interfering. So switching to boolean filtering seems to work; and it is fine for mechanical
2018 Sep 30
1
xapian parser bug?
On Sun, Sep 30, 2018 at 09:05:25AM -0300, David Bremner wrote: > if (str.find (' ') != std::string::npos) > query_str = '"' + str + '"'; > else > query_str = str; > > return parser.parse_query (query_str, NOTMUCH_QUERY_PARSER_FLAGS, term_prefix); I wouldn't recommend trying to generate strings to feed to