Displaying 6 results from an estimated 6 matches for "flag_auto_synonym".
Did you mean:
flag_auto_synonyms
2012 Jan 04
2
[issue] The difference between QueryParser::FLAG_AUTO_SYNONYMS and QueryParser::FLAG_AUTO_MULTIWORD_SYNONYMS
I don't know whether this is a BUG or for special purpose...
According to the definition of "xapian/queryparser.h", FLAG_AUTO_MULTIWORD_SYNONYMS contains bit of
FLAG_AUTO_SYNONYMS .
Therefore, long as I set the parse flag with FLAG_AUTO_SYNONYMS, the query parser will automatically activate
the function of FLAG_AUTO_MULTIWORD_SYNONYMS. See the below source code part from "queryparser.lemon"
...
1358 subqs.reserve(terms.size());
1359 if (state->flags...
2011 Sep 23
2
understanding stemming and synonyms
...ad', terms[2]))
TERM: Zfahrrad
TERM: fahrrad
INSERT DOKUMENT: fahrraeder
DOCUMENT: Document(Xapian::Document::Internal(data=`fahrraeder', terms[2]))
TERM: Zfahrrad
TERM: fahrraeder
That looks fine, but when i now use the query_parser with stemmer
(german2 & STEM_ALL) and parse_query (FLAG_AUTO_SYNONYMS), i get this
queries:
ENTER QUERY: bike
[QUERY: Xapian::Query(bik:(pos=1))]
[RESULTS: 0]
ENTER QUERY: fahrrad
[QUERY: Xapian::Query((fahrrad:(pos=1) SYNONYM Zbik:(pos=1)))]
[RESULTS: 2]
ENTER QUERY: fahrraeder
[QUERY: Xapian::Query((fahrrad:(pos=1) SYNONYM Zbik:(pos=1)))]
[RESULTS: 2]
I thin...
2011 Jul 28
1
Xapian and Synonyms
...the documentation's not clear on how this works (sorry
if this is starting to sound a little annoying). Having dug through the
mailing list, I can surmise that:
o Synonyms only need to be added to a database once and are
transaction-persistent
o They're activated by adding the flag FLAG_AUTO_SYNONYMS to the
QueryParser
Which isn't a lot; so what I'd like clarification on is:
o Are synonyms database-persistent (i.e once added do they stay in
the database until removed)?
o Are they dual-direction (i.e. if I enter 'tap' or 'faucet' will
both be picked up if a def...
2012 Oct 04
1
Synonyms of Abbreviations
Hello,
I am looking for a documentation or an example to use the synonym function.
I tried this
db.add_synonym("omega","xapain");
and this works by adding the flag FLAG_AUTO_SYNONYMS.
If i try to use the
db.add_synonym("omega","xapain is search engine ");
it fails why? Can xapian use synonym for Abbreviations like MBA => Master
of business administration?
--Naveen.A.N
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <...
2012 Jan 20
2
Perl version of sortable_serialize missing?
I attempted to use the sortable_serialize function from perl, however
doesn't seem to exist. The only occurrence of the string "sortable" in
the /usr/local/perl/5.10.1/Search/ tree is in the pod in Xapian.pm.
What am I doing wrong?
use Search::Xapian;
...
$doc->add_value(4,sortable_serialize($recdate));
Undefined subroutine &main::sortable_serialize called
2015 Dec 28
3
synonym expansion for boolean prefixes.
...nym("Kfoo","Kbar")
db.commit();
qp = xapian.QueryParser()
qp.set_database(db);
# replacing add_prefix with add_boolean_prefix stops synonym expansion, tested with 1.2.21
qp.add_prefix("tag","K")
query=qp.parse_query("tag:foo",xapian.QueryParser.FLAG_AUTO_SYNONYMS)
print query;
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 647 bytes
Desc: not available
URL: <http://lists.xapian.org/pipermail/xapian-discuss/attachments/20151227/13a23af9/attachment.sig>