Thanks, your tip worked just fine. I was just a little bit confused by
indexing and views and _design documents.... It's all so different with
this document based database but I will figure it out ;)
kind regards,
Wolfgang
Manolo Padron Martinez wrote:
Hi:
As I know
http://localhost:5984/databasename/_fti/lucene/by_name/?q=docname:something
Regards from Canary Islands
Manuel Padrón Martínez
On Mon, Jul 13, 2009 at 12:27 PM, Wolfgang
issovits<[email protected]> wrote:
Hello!
I've tried to set up couchdb with lucene for a while with no success so far.
I created a "_design/lucene" document for indexing which looks like this:
{
"_id": "_design/lucene",
"_rev": "5-2604847086",
"fulltext": {
"by_name": {
"defaults": {
"store": "yes"
},
"index": "function(doc) { var ret=new Document();
ret.add(doc.name); return ret }"
}
}
}
In addition I created a "_design/views" document:
{
"_id": "_design/views",
"_rev": "20-662305778",
"language": "javascript",
"views": {
"all_signals": {
"map": "function(doc) {\n if (doc.type == 'signal')\n
emit(doc.name, doc._id);\n}"
}
}
}
Now i tried to call this view with a query. I tried several different urls
with no success so far. All I get are different errors... ("Extra path info
in request", "test/luence/all_signals is not a valid view", "No view name in
path")
Can someone tell me the right way to call a view with a query parameter?
Thanks in advance.
kind regards,
Wolfgang