couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <robert.new...@gmail.com>
Subject Re: Help with couchdb-lucene
Date Sat, 28 Nov 2009 13:48:01 GMT
Verify that you've hooked up the indexer (under update_notification)
and verify that it has built indexes (you should find a directory
called 'lucene').

Also check both the couchdb.log and couchdb-lucene.log for errors.

B.

On Sat, Nov 28, 2009 at 1:38 PM, Smrchy <smrchy@gmail.com> wrote:
> Hi,
>
> i don't know what i'm missing - maybe someone can push me in the right
> direction?
>
> I installed couchdb-lucene 0.4 and couchdb seems to start without errors.
>
> I created a document:
>
> {
>   "_id": "_design/lucene",
>   "_rev": "2-f7d29646a16db961903f7d7b73fe1d77",
>   "fulltext": {
>       "by_name": {
>           "index": "function(doc) { var ret=new Document(); ret.add(
> doc.name); return ret }"
>       }
>   }
> }
>
> I got lots of documents with doc.name = "somename" and some other fields in
> the database.
>
> Now whatever i do i can't query a document.
>
> I either get "database/lucene/by_name is not a valid view" with this query:
> http://127.0.0.1:5984/database/_fti/lucene/by_name?q=Peter
>
> The above is the only design document i got in the db so far. Do i need
> another one?
>
> Some help would be appreciated :)
>
> Thx
> Patrick
>

Mime
View raw message