Search issues

13 views
Skip to first unread message

TDAS

unread,
Sep 13, 2023, 4:46:29 PM9/13/23
to us...@couchdb.apache.org
Greetings

I’ve set up an index in a design doc, and I’m trying to use _search after a long wait I get:

{
"error": "ou_est_clouseau”,
"reason": "Could not connect to the Clouseau Java service at clou...@127.0.0.1
}

So, I’ve been looking into installing this but am going down a rabbit hole.

First I need java which I don’t have - I install that, then google tells me it will only compile with jdk6, which I can’t find. Then I see it uses log4j and I’m remembering the vulnerability that caused a load of headaches.

Any advice? Is there an idiot guide somewhere?

TIA

TC




Robert Newson

unread,
Sep 13, 2023, 4:56:51 PM9/13/23
to user
There's https://docs.couchdb.org/en/stable/install/search.html

You can use up to java 8 but nothing newer.

We dropped log4j btw, though clouseau only ever used log4j 1.x which was not affected by the Log4Shell vulnerability. clouseau uses slf4j and you need to choose which adapter you'd like.

The next major release of couchdb will include an alternative Lucene indexing system that works with Java 11 through 20 and will include the Java artifacts necessary to run the whole stack.

B.

TDAS

unread,
Sep 13, 2023, 5:06:54 PM9/13/23
to us...@couchdb.apache.org
Ok thanks, any tips on installing jdk 8 on Debian bullseye? I can’t find anywhere with any suggestions for a version that early, apart from one which says I need to sign up with Oracle! this is becoming a much bigger headache than I had envisaged

TDAS

unread,
Sep 13, 2023, 5:56:10 PM9/13/23
to us...@couchdb.apache.org
Ok success!
Well, nearly… I’m not getting anything useful back unless I include_docs, which I don’t want to do…
How can I populate fields here? I’ve tried adding a fields array, and also using highlight_fields
{
"total_rows": 2,
"bookmark": "g1AAAABteJzLYWBgYMpgTmEQTM4vTc5ISXIwNDLXMwBCwxyQVCJDUv3___-zMpjc7D9rbnEAiiUy4lGfxwIkGRqA1H-Yto9rXoPEEnmyADx8Hsc",
"rows": [
{
"id": "bf9143999ed3eedd7cbc7ff3560588eb",
"order": [
1.1976816654205322,
1
],
"fields": {}
},
{
"id": "bf9143999ed3eedd7cbc7ff35601949d",
"order": [
1.1047163009643555,
12
],
"fields": {}
}
]
}

This is my index:

function (doc) {
if (doc.type === 'user' && doc.firstname && doc.lastname) {
index('name', doc.firstname + ' ' + doc.lastname, { 'store': 'true' });
index('firstname', doc.firstname, { 'store': 'true' });

Brandon Booth

unread,
Sep 13, 2023, 6:29:23 PM9/13/23
to us...@couchdb.apache.org
Is there an ETA on the next major release?

Thanks

Brandon

Sent from Proton Mail mobile

-------- Original Message --------
On Sep 13, 2023, 3:56 PM, Robert Newson wrote:

> There's https://docs.couchdb.org/en/stable/install/search.html You can use up to java 8 but nothing newer. We dropped log4j btw, though clouseau only ever used log4j 1.x which was not affected by the Log4Shell vulnerability. clouseau uses slf4j and you need to choose which adapter you'd like. The next major release of couchdb will include an alternative Lucene indexing system that works with Java 11 through 20 and will include the Java artifacts necessary to run the whole stack. B. > On 13 Sep 2023, at 21:45, TDAS wrote: > > Greetings > > I’ve set up an index in a design doc, and I’m trying to use _search after a long wait I get: > > { > "error": "ou_est_clouseau”, > "reason": "Could not connect to the Clouseau Java service at clou...@127.0.0.1” > } > > So, I’ve been looking into installing this but am going down a rabbit hole. > > First I need java which I don’t have - I install that, then google tells me it will only compile with jdk6, which I can’t find. Then I see it uses log4j and I’m remembering the vulnerability that caused a load of headaches. > > Any advice? Is there an idiot guide somewhere? > > TIA > > TC > > > >

Robert Newson

unread,
Sep 14, 2023, 9:48:48 AM9/14/23
to user
Hi,

It's true not 'true' (boolean not string).

B.

TDAS

unread,
Sep 14, 2023, 11:28:20 AM9/14/23
to us...@couchdb.apache.org
That’s really odd, they’re booleans in fauxton… not sure what happened there...
Reply all
Reply to author
Forward
0 new messages