You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by "A.J. Brown" <aj...@ajbrown.org> on 2010/08/13 17:16:13 UTC

CouchDB-Lucene and keys

Hi All,

Is it possible to emit keys with couchdb-lucene views, and return only
documents which match the key (like standard views)?  I have a set of
documents that are currently being indexed, but I need to query only a
certain subset of those documents based on a certain variable value.
I would rather not have to make seperate lucene views for each
possible variable value since the number of possible values is not
fixed.

Thanks for your help!

-- 
A.J. Brown
Software Engineer, ZCE
blog : http://ajbrown.org
talk  : (937) 540-0099
chat : IntypicaAJ

Re: CouchDB-Lucene and keys

Posted by Robert Newson <ro...@gmail.com>.
The indexes are separate. You can use a fulltext function to index the
field and then you can query it for particular values. I'm not sure
there's a need for couchdb-lucene for a case that is easily covered by
couchdb views, though, unless you need boolean ("cat OR dog") or
wildcards, or something.

B.

On Fri, Aug 13, 2010 at 5:51 PM, A.J. Brown <aj...@ajbrown.org> wrote:
> Can you elaborate? :) Do I just specify a map function next to the
> index function, and pass the normal key|startkey|endkey query string
> variables along with my query?
>
> On Fri, Aug 13, 2010 at 11:19 AM, Robert Newson <ro...@gmail.com> wrote:
>> yes.
>>
>> On Fri, Aug 13, 2010 at 4:16 PM, A.J. Brown <aj...@ajbrown.org> wrote:
>>> Hi All,
>>>
>>> Is it possible to emit keys with couchdb-lucene views, and return only
>>> documents which match the key (like standard views)?  I have a set of
>>> documents that are currently being indexed, but I need to query only a
>>> certain subset of those documents based on a certain variable value.
>>> I would rather not have to make seperate lucene views for each
>>> possible variable value since the number of possible values is not
>>> fixed.
>>>
>>> Thanks for your help!
>>>
>>> --
>>> A.J. Brown
>>> Software Engineer, ZCE
>>> blog : http://ajbrown.org
>>> talk  : (937) 540-0099
>>> chat : IntypicaAJ
>>>
>>
>
>
>
> --
> A.J. Brown
> Software Engineer, ZCE
> blog : http://ajbrown.org
> talk  : (937) 540-0099
> chat : IntypicaAJ
>

Re: CouchDB-Lucene and keys

Posted by "A.J. Brown" <aj...@ajbrown.org>.
Can you elaborate? :) Do I just specify a map function next to the
index function, and pass the normal key|startkey|endkey query string
variables along with my query?

On Fri, Aug 13, 2010 at 11:19 AM, Robert Newson <ro...@gmail.com> wrote:
> yes.
>
> On Fri, Aug 13, 2010 at 4:16 PM, A.J. Brown <aj...@ajbrown.org> wrote:
>> Hi All,
>>
>> Is it possible to emit keys with couchdb-lucene views, and return only
>> documents which match the key (like standard views)?  I have a set of
>> documents that are currently being indexed, but I need to query only a
>> certain subset of those documents based on a certain variable value.
>> I would rather not have to make seperate lucene views for each
>> possible variable value since the number of possible values is not
>> fixed.
>>
>> Thanks for your help!
>>
>> --
>> A.J. Brown
>> Software Engineer, ZCE
>> blog : http://ajbrown.org
>> talk  : (937) 540-0099
>> chat : IntypicaAJ
>>
>



-- 
A.J. Brown
Software Engineer, ZCE
blog : http://ajbrown.org
talk  : (937) 540-0099
chat : IntypicaAJ

Re: CouchDB-Lucene and keys

Posted by Robert Newson <ro...@gmail.com>.
yes.

On Fri, Aug 13, 2010 at 4:16 PM, A.J. Brown <aj...@ajbrown.org> wrote:
> Hi All,
>
> Is it possible to emit keys with couchdb-lucene views, and return only
> documents which match the key (like standard views)?  I have a set of
> documents that are currently being indexed, but I need to query only a
> certain subset of those documents based on a certain variable value.
> I would rather not have to make seperate lucene views for each
> possible variable value since the number of possible values is not
> fixed.
>
> Thanks for your help!
>
> --
> A.J. Brown
> Software Engineer, ZCE
> blog : http://ajbrown.org
> talk  : (937) 540-0099
> chat : IntypicaAJ
>