lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: [lucy-user] ProxmityQuery in C
Date Wed, 15 Feb 2017 22:55:39 GMT
Kasi Lakshman Karthi Anbumony wrote on 2/15/17 4:22 PM:

>
> I stumbled upon this perl thread:
> http://lucene.472066.n3.nabble.com/lucy-user-Unable-to-retrieve-records-using-Proximity-query-td3990375.html
>
> The above perl thread says that there is no analyzer for ProximityQuery.
> Can I know what is the equivalent translation I need to apply for my C code
> so as to enable ProximtyQuery and get it working?
>


You need to analyze "terms" before you pass it to ProximityQuery_new

The relevant section of the QueryParser code is here and might point you in the 
right direction:

https://github.com/apache/lucy/blob/master/core/Lucy/Search/QueryParser.c#L862




-- 
Peter Karman  .  https://peknet.com/  .  https://keybase.io/peterkarman

Mime
View raw message