search for: op_synonym

Displaying 4 results from an estimated 4 matches for "op_synonym".

2012 Jan 05
1
Enhance synonyms feature of the query parser (patch included)
...ile (syn != end) { + #ifdef HAVE_SYNONYMS_ENH + string sterm = *syn; + if (!piter->empty()) { + if (sterm[0] == 'Z') sterm = "Z" + *piter + sterm.substr(1); + else sterm = *piter + sterm; + } + q = Query(query::OP_SYNONYM, q, Query(sterm, 1, pos)); + #else q = Query(Query::OP_SYNONYM, q, Query(*syn, 1, pos)); + #endif ++syn; } } *************** *** 1356,1362 **** --- 1369,1379 ---- Query::op default_op = state->default_op(); vector<Query> subqs; subqs....
2012 Jul 06
1
multiword synoyms
I am using synoyms and cannot determine how to use them in following example: $db->add_synonym('Zfoobar','Zfoo Zbar') or $db->add_synonym('Zfoobar','Zfoo AND Zbar') Or is this general not possible? MfG Felix
2015 Mar 14
2
range query for terms
first, thank you,xapian! then I'd like to ask if it is possible to do a range query on terms(like the range query on values), or if it is just a wildcard(right truncation) match. the case is searching ip address bettween ?10.10.0.0? and ?10.10.255.255? the user want : 1. query "10.10.10.10" < ip < "10.10.10.12" gives "10.10.10.11" 2. query
2015 Mar 29
1
range query for terms
...entially matches 16 >million terms. With a value, there's only one thing to check for every >candidate document. > >But if you only actually have a small number of IP addresses and really >want to use terms, you can just iterate allterms from the Database >object and build an OP_SYNONYM query from all the matching terms. In >1.2.x, that's exactly how OP_WILDCARD is implemented (in master >OP_WILDCARD expansion is delayed until we process the Query tree, which >means we can avoid creating Query objects for every term in the >wildcard). > >Cheers, > Olly