[Xapian-discuss] Omega
Jim Lynch
jim at fayettedigital.com
Wed Feb 8 13:46:44 GMT 2006
Thanks, now I want to extend omega to include variable proximity
searches and added the following at the beginning of the run_query function:
vector<string> myTerms;
myTerms.push_back("less");
myTerms.push_back("february");
Xapian::Query nearMe(Xapian::Query::OP_NEAR,
myTerms.begin(),myTerms.end(),5);
query = Xapian::Query(Xapian::Query::OP_AND, query, nearMe);
I suspect I'm misunderstanding how something works. Any suggestions? I
called omega with P=less thinking that the redundance will be ignored.
The terms less and february are 3 words appart.
Thanks,
Jim.
Olly Betts wrote:
>On Tue, Feb 07, 2006 at 04:42:47PM -0500, Jim Lynch wrote:
>
>
>>Are there any options to forming queries with Omega? For instance can
>>you specify a proximity search like "file near 5 manager"? If so, where
>>might I find this documented? I don't see it in the docs directory.
>>
>>
>
>Omega uses the QueryParser, so see the documentation for that:
>
>http://www.xapian.org/docs/queryparser.html
>
>I recall this being asked before. I'll add a note to the Omega
>documentation, as it's not obvious to look in the xapian-core
>documentation for this information.
>
>"NEAR" is supported, but currently the distance is fixed at "within 10
>words".
>
>Cheers,
> Olly
>
>
>
>
>
More information about the Xapian-discuss
mailing list