incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: couchdb lucene, tricky query question
Date Tue, 30 Jul 2013 13:57:36 GMT
?q=value:Antarctica AND (membername:pantagruel membername:hosein)

will work as you expect (once you s/ /%20), the default boolean
operator is "or", so the above is the same as;

?q=value:Antarctica AND (membername:pantagruel OR membername:hosein)



On 30 July 2013 14:24, bryan rasmussen <rasmussen.bryan@gmail.com> wrote:
> Hi,
>
> I have an application where users can look at other users stuff, if
> they have permission. I want to allow full-text search of documents
> but only of those documents the user self owns or the ones they have
> access to.
>
> so if I have fields like this:
>
> "fields":{"value":"Defined by the Antarctic Treaty as everything south
> of latitude 60°S. AQ domain names are available to government
> organizations who are signatories to the Antarctic Treaty and to other
> registrants who have a physical presence in Antarctica. \t  \tNo \tYes
> .ar \t Argentina","membername":"pantagruel"}}]}
>
> and I want to search in value: Antarctica and want to limit my results
> to membernames that are allowed to see it I should have a query that
> looks like what?
>
> I was thinking like this
>
> q=value:'Antarctica' AND (membername:pantagruel+membername:hosein)
>
> with the list of membername inside of the rounded brackets expanding
> as needed, any other way to do this?
> Does this seem syntactically correct?
>
> Thanks,
> Bryan Rasmussen

Mime
View raw message