Displaying 4 results from an estimated 4 matches for "synonyms_begin".
2016 Jan 09
1
synonym expansion for boolean prefixes.
Olly Betts <olly at survex.com> writes:
> On Tue, Jan 05, 2016 at 08:43:13AM -0400, David Bremner wrote:
>> Olly Betts <olly at survex.com> writes:
>>
>> > To achieve this 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
2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...term = 'Z';
+ #ifndef HAVE_SYNONYMS_ENH
if (!piter->empty()) {
term += *piter;
if (prefix_needs_colon(*piter, name[0])) term += ':';
}
+ #endif
term += state->stem_term(name);
syn = db.synonyms_begin(term);
end = db.synonyms_end(term);
}
while (syn != end) {
+ #ifdef HAVE_SYNONYMS_ENH
+ string sterm = *syn;
+ if (!piter->empty()) {
+ if (sterm[0] == 'Z') sterm = "Z" + *piter + sterm.substr(1);
+ els...
2014 Apr 13
2
Adding an external library to Xapian
...n RSet with the listed docids in.
Xapian::RSet rset;
if (*argv) {
- while (*++argv) {
- rset.add_document(atoi(*argv));
- }
+ while (*++argv) {
+ rset.add_document(atoi(*argv));
+ }
}
+ // Log the query
+ db.log(query_string);
+ // DB syns
+ Xapian::TermIterator tmiter = db.synonyms_begin(query_string);
+ Xapian::TermIterator tmiterend = db.synonyms_end(query_string);
+ for(;tmiter != tmiterend; ++tmiter) {
+ cout << "hello" << endl;
+ cout << *tmiter << endl;
+ }
+
+ Xapian::Trie trie;
// Parse the query string to produce a Xapian::Query obj...
2014 Apr 13
2
Adding an external library to Xapian
My code is not on Github. I am using the tarball as of now. The following
it the error that occurred:
http://pastebin.com/cVJrjUZX
On Sun, Apr 13, 2014 at 8:16 PM, James Aylett <james-xapian at tartarus.org>wrote:
> On 13 Apr 2014, at 15:37, Pallavi Gudipati <pallavigudipati at gmail.com>
> wrote:
>
> > A linker error is encountered even after following the above