You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by TDAS <ta...@icloud.com.INVALID> on 2023/09/13 20:45:57 UTC
Search issues
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 clouseau@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
Re: Search issues
Posted by TDAS <ta...@icloud.com.INVALID>.
That’s really odd, they’re booleans in fauxton… not sure what happened there...
> On 14 Sep 2023, at 14:47, Robert Newson <rn...@apache.org> wrote:
>
> Hi,
>
> It's true not 'true' (boolean not string).
>
> B.
>
>> On 13 Sep 2023, at 22:54, TDAS <ta...@icloud.com.INVALID> wrote:
>>
>> 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' });
>> }
>> }
>>
>>
>>
>>> On 13 Sep 2023, at 22:06, TDAS <ta...@icloud.com.INVALID> wrote:
>>>
>>> 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
>>>
>>>> On 13 Sep 2023, at 21:56, Robert Newson <rn...@apache.org> 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 <ta...@icloud.com.INVALID> 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 clouseau@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
>>>>>
>>>>>
>>>>>
>>>>>
>>>>
>>
Re: Search issues
Posted by Robert Newson <rn...@apache.org>.
Hi,
It's true not 'true' (boolean not string).
B.
> On 13 Sep 2023, at 22:54, TDAS <ta...@icloud.com.INVALID> wrote:
>
> 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' });
> }
> }
>
>
>
>> On 13 Sep 2023, at 22:06, TDAS <ta...@icloud.com.INVALID> wrote:
>>
>> 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
>>
>>> On 13 Sep 2023, at 21:56, Robert Newson <rn...@apache.org> 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 <ta...@icloud.com.INVALID> 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 clouseau@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
>>>>
>>>>
>>>>
>>>>
>>>
>
Re: Search issues
Posted by TDAS <ta...@icloud.com.INVALID>.
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' });
}
}
> On 13 Sep 2023, at 22:06, TDAS <ta...@icloud.com.INVALID> wrote:
>
> 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
>
>> On 13 Sep 2023, at 21:56, Robert Newson <rn...@apache.org> 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 <ta...@icloud.com.INVALID> 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 clouseau@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
>>>
>>>
>>>
>>>
>>
Re: Search issues
Posted by TDAS <ta...@icloud.com.INVALID>.
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
> On 13 Sep 2023, at 21:56, Robert Newson <rn...@apache.org> 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 <ta...@icloud.com.INVALID> 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 clouseau@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
>>
>>
>>
>>
>
Re: Search issues
Posted by Brandon Booth <Bb...@protonmail.com.INVALID>.
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 clouseau@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 > > > >
Re: Search issues
Posted by Robert Newson <rn...@apache.org>.
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 <ta...@icloud.com.INVALID> 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 clouseau@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
>
>
>
>