You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by "Andrew Stuart (SuperCoders)" <an...@supercoders.com.au> on 2011/03/23 23:56:18 UTC

Couchdb - how to search within field or fields?

hello

I have emails stored in a couchdb database and have parsed the major  
fields into JSON .  I'd like to be able to search for emails, here are  
some examples of the types of searches I need to do:

find all emails that have "java OR c++"  in the subject line
find all emails that have "graduate NOT tester" in the subject line
find all emails received in 2011 AND have a subject line including the  
word "linux"
find all emails that have "(graduate OR junior) NOT linux" in the  
subject line

Can couchdb do this?

thanks

Re: Couchdb - how to search within field or fields?

Posted by "Andrew Stuart (SuperCoders)" <an...@supercoders.com.au>.
search seems a relatively important core feature of a database?

Damien Katz announcement about the merger says that Membase will be  
getting Couchdb's indexing features including lucene.
http://blog.couchbase.com/couchone-membase-couchbase

Is Damien saying lucene is part of couchdb?


On 24/03/2011, at 10:28 AM, Paul Davis wrote:

On Wed, Mar 23, 2011 at 4:25 PM, Robert Newson  
<ro...@gmail.com> wrote:
> The first person to port Lucene to erlang gets a medal.
>
> B.

I'm still holding my breath that you'd get around to it.
-- 
Message  protected by MailGuard: e-mail anti-virus, anti-spam and  
content filtering.http://www.mailguard.com.au/mg
Click here to report this message as spam:
https://login.mailguard.com.au/report/1BXGBvmV1o/1q2fMnJ5Bda4tfjbGQhYTW/1

Re: Couchdb - how to search within field or fields?

Posted by Paul Davis <pa...@gmail.com>.
On Wed, Mar 23, 2011 at 4:25 PM, Robert Newson <ro...@gmail.com> wrote:
> The first person to port Lucene to erlang gets a medal.
>
> B.

I'm still holding my breath that you'd get around to it.

Re: Couchdb - how to search within field or fields?

Posted by Robert Newson <ro...@gmail.com>.
The first person to port Lucene to erlang gets a medal.

B.

On 23 March 2011 23:22, Andrew Stuart (SuperCoders)
<an...@supercoders.com.au> wrote:
> That's a pity.  Is search on the roadmap to become part of the core product?
>
>
> On 24/03/2011, at 10:19 AM, David Hardtke wrote:
>
>
> No.  For logical queries you need a search add-on:
>
> couchdb-lucene: http://github.com/rnewson/couchdb-lucene
> ElasticSearch: http://www.elasticsearch.com/
> Cloudant Search (hosted):
> http://blog.cloudant.com/developer-preview-cloudant-search-for-couchdb/
>
> On 03/23/11 15:56, Andrew Stuart (SuperCoders) wrote:
>>
>> hello
>>
>> I have emails stored in a couchdb database and have parsed the major
>> fields into JSON .  I'd like to be able to search for emails, here are some
>> examples of the types of searches I need to do:
>>
>> find all emails that have "java OR c++"  in the subject line
>> find all emails that have "graduate NOT tester" in the subject line
>> find all emails received in 2011 AND have a subject line including the
>> word "linux"
>> find all emails that have "(graduate OR junior) NOT linux" in the subject
>> line
>>
>> Can couchdb do this?
>>
>> thanks
>
> --
> Message  protected by MailGuard: e-mail anti-virus, anti-spam and content
> filtering.http://www.mailguard.com.au/mg
> Click here to report this message as spam:
> https://login.mailguard.com.au/report/1BXGqYLw9O/5FdPsMgZtAWmcvuhN5VjpW/0
>

Re: Couchdb - how to search within field or fields?

Posted by "Andrew Stuart (SuperCoders)" <an...@supercoders.com.au>.
That's a pity.  Is search on the roadmap to become part of the core  
product?


On 24/03/2011, at 10:19 AM, David Hardtke wrote:


No.  For logical queries you need a search add-on:

couchdb-lucene: http://github.com/rnewson/couchdb-lucene
ElasticSearch: http://www.elasticsearch.com/
Cloudant Search (hosted): http://blog.cloudant.com/developer-preview-cloudant-search-for-couchdb/

On 03/23/11 15:56, Andrew Stuart (SuperCoders) wrote:
> hello
>
> I have emails stored in a couchdb database and have parsed the major  
> fields into JSON .  I'd like to be able to search for emails, here  
> are some examples of the types of searches I need to do:
>
> find all emails that have "java OR c++"  in the subject line
> find all emails that have "graduate NOT tester" in the subject line
> find all emails received in 2011 AND have a subject line including  
> the word "linux"
> find all emails that have "(graduate OR junior) NOT linux" in the  
> subject line
>
> Can couchdb do this?
>
> thanks

-- 
Message  protected by MailGuard: e-mail anti-virus, anti-spam and  
content filtering.http://www.mailguard.com.au/mg
Click here to report this message as spam:
https://login.mailguard.com.au/report/1BXGqYLw9O/5FdPsMgZtAWmcvuhN5VjpW/0

Re: Couchdb - how to search within field or fields?

Posted by Olafur Arason <ol...@olafura.com>.
Is Cloudant Search going opensource anytime soon?

Regards,
Olafur Arason

On Wed, Mar 23, 2011 at 23:19, David Hardtke <da...@cloudant.com> wrote:
>
> No.  For logical queries you need a search add-on:
>
> couchdb-lucene: http://github.com/rnewson/couchdb-lucene
> ElasticSearch: http://www.elasticsearch.com/
> Cloudant Search (hosted):
> http://blog.cloudant.com/developer-preview-cloudant-search-for-couchdb/
>
> On 03/23/11 15:56, Andrew Stuart (SuperCoders) wrote:
>>
>> hello
>>
>> I have emails stored in a couchdb database and have parsed the major
>> fields into JSON .  I'd like to be able to search for emails, here are some
>> examples of the types of searches I need to do:
>>
>> find all emails that have "java OR c++"  in the subject line
>> find all emails that have "graduate NOT tester" in the subject line
>> find all emails received in 2011 AND have a subject line including the
>> word "linux"
>> find all emails that have "(graduate OR junior) NOT linux" in the subject
>> line
>>
>> Can couchdb do this?
>>
>> thanks
>
>

Re: Couchdb - how to search within field or fields?

Posted by David Hardtke <da...@cloudant.com>.
No.  For logical queries you need a search add-on:

couchdb-lucene: http://github.com/rnewson/couchdb-lucene
ElasticSearch: http://www.elasticsearch.com/
Cloudant Search (hosted): 
http://blog.cloudant.com/developer-preview-cloudant-search-for-couchdb/

On 03/23/11 15:56, Andrew Stuart (SuperCoders) wrote:
> hello
>
> I have emails stored in a couchdb database and have parsed the major 
> fields into JSON .  I'd like to be able to search for emails, here are 
> some examples of the types of searches I need to do:
>
> find all emails that have "java OR c++"  in the subject line
> find all emails that have "graduate NOT tester" in the subject line
> find all emails received in 2011 AND have a subject line including the 
> word "linux"
> find all emails that have "(graduate OR junior) NOT linux" in the 
> subject line
>
> Can couchdb do this?
>
> thanks