Displaying 5 results from an estimated 5 matches for "foo_tag_term".
2016 Jan 05
2
synonym expansion for boolean prefixes.
...with synonyms in a configurable way you'd need to
> rewrite the synonyms in the database to match the current configuration,
> so it's not as dynamic as the above.
Well, the configuration needs to be somewhere. Would it make sense to
from a performance point of view to be looking up foo_tag_term in
document metadata? That was one of the attractions of using synonyms
that there is already a persistent/atomic/configurable way of storing
them. With a field processor we'd have to manage that ourselves, and I'm
hoping to avoid managing my own cache, at least in the first revision.
>...
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
0
synonym expansion for boolean prefixes.
...or 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"
qp = xapian.QueryParser()
qp:add_boolean_prefix("tag",
function (x)
if x == "foo" then
return xapian.Query(foo_tag_term)
end
return xapian.Query("K" .. x)
end)
print(qp:parse_query("tag:foo tag:x"))
Which...
2016 Jan 09
1
synonym expansion for boolean prefixes.
...need to
>> > rewrite the synonyms in the database to match the current configuration,
>> > so it's not as dynamic as the above.
>>
>> Well, the configuration needs to be somewhere. Would it make sense to
>> 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.
Just this morning I realized any lookup would happen during query parsing,
which seems pretty unli...
2016 Jan 09
0
synonym expansion for boolean prefixes.
...urable way you'd need to
> > rewrite the synonyms in the database to match the current configuration,
> > so it's not as dynamic as the above.
>
> Well, the configuration needs to be somewhere. Would it make sense to
> 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 d...