You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@couchdb.apache.org by Gary Thomas <7z...@gmail.com> on 2011/06/07 07:35:41 UTC
couchdb 1.1, couchdb lucene, include_docs=true
Hi all,
Having trouble with couchdb 1.1 together couchdb lucene 0.6 and using
the include_docs=true parameter. It was working fine with couchdb 1.0.x
When I do this GET to a lucene view and use include_docs=true:
http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image&include_docs=true
I get this error:
{
code: 500
reason: "{"error":"bad_content_type","reason":"Content-Type must be
application/json"} "
}
When I leave include_docs off, it works fine:
http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image
{
q: "kind:image",
etag: "1224e617cb465190",
skip: 0,
total_rows: 2,
search_duration: 2,
fetch_duration: 9,
rows: [
{
id: "116684826989320284f90c4cf472b94e",
score: 1,
fields: {
kind: "image",
name: "140.jpg",
width: "764",
height: "1068",
size: "255031"
}
},
{
id: "116684826989320284f90c4cf4013143",
score: 1,
fields: {
kind: "image",
name: "93.jpg",
width: "656",
height: "836",
size: "47173"
}
}
]
}
I've tried setting "Content-Type" header to "application/json" (via
Apache HttpClient), but still get this error. Same result via a browser.
It was working fine in 1.0.x
Could someone help?
Thanks,
Gary
Re: couchdb 1.1, couchdb lucene, include_docs=true
Posted by Gary Thomas <7z...@gmail.com>.
Thanks Robert!
- Gary
On 6/7/11 2:35 AM, Robert Newson wrote:
> Done.
>
> On 7 June 2011 09:32, Robert Newson<ro...@gmail.com> wrote:
>> I believe this bug was fixed on Dec 7 2010
>> (https://github.com/rnewson/couchdb-lucene/commit/6f81165a786e1b1130e3683fa334f3e9ce5611ab)
>> on the 0.6.x branch.
>>
>> I'll review the branch and push out a 0.6.1 release.
>>
>> B.
>>
>> On 7 June 2011 06:35, Gary Thomas<7z...@gmail.com> wrote:
>>> Hi all,
>>>
>>> Having trouble with couchdb 1.1 together couchdb lucene 0.6 and using the
>>> include_docs=true parameter. It was working fine with couchdb 1.0.x
>>>
>>>
>>> When I do this GET to a lucene view and use include_docs=true:
>>>
>>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image&include_docs=true
>>>
>>> I get this error:
>>>
>>> {
>>> code: 500
>>> reason: "{"error":"bad_content_type","reason":"Content-Type must be
>>> application/json"} "
>>> }
>>>
>>> When I leave include_docs off, it works fine:
>>>
>>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image
>>>
>>> {
>>> q: "kind:image",
>>> etag: "1224e617cb465190",
>>> skip: 0,
>>> total_rows: 2,
>>> search_duration: 2,
>>> fetch_duration: 9,
>>> rows: [
>>> {
>>> id: "116684826989320284f90c4cf472b94e",
>>> score: 1,
>>> fields: {
>>> kind: "image",
>>> name: "140.jpg",
>>> width: "764",
>>> height: "1068",
>>> size: "255031"
>>> }
>>> },
>>> {
>>> id: "116684826989320284f90c4cf4013143",
>>> score: 1,
>>> fields: {
>>> kind: "image",
>>> name: "93.jpg",
>>> width: "656",
>>> height: "836",
>>> size: "47173"
>>> }
>>> }
>>> ]
>>> }
>>>
>>>
>>> I've tried setting "Content-Type" header to "application/json" (via Apache
>>> HttpClient), but still get this error. Same result via a browser.
>>> It was working fine in 1.0.x
>>>
>>> Could someone help?
>>>
>>> Thanks,
>>> Gary
>>>
>>
Re: couchdb 1.1, couchdb lucene, include_docs=true
Posted by Robert Newson <ro...@gmail.com>.
Done.
On 7 June 2011 09:32, Robert Newson <ro...@gmail.com> wrote:
> I believe this bug was fixed on Dec 7 2010
> (https://github.com/rnewson/couchdb-lucene/commit/6f81165a786e1b1130e3683fa334f3e9ce5611ab)
> on the 0.6.x branch.
>
> I'll review the branch and push out a 0.6.1 release.
>
> B.
>
> On 7 June 2011 06:35, Gary Thomas <7z...@gmail.com> wrote:
>> Hi all,
>>
>> Having trouble with couchdb 1.1 together couchdb lucene 0.6 and using the
>> include_docs=true parameter. It was working fine with couchdb 1.0.x
>>
>>
>> When I do this GET to a lucene view and use include_docs=true:
>>
>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image&include_docs=true
>>
>> I get this error:
>>
>> {
>> code: 500
>> reason: "{"error":"bad_content_type","reason":"Content-Type must be
>> application/json"} "
>> }
>>
>> When I leave include_docs off, it works fine:
>>
>> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image
>>
>> {
>> q: "kind:image",
>> etag: "1224e617cb465190",
>> skip: 0,
>> total_rows: 2,
>> search_duration: 2,
>> fetch_duration: 9,
>> rows: [
>> {
>> id: "116684826989320284f90c4cf472b94e",
>> score: 1,
>> fields: {
>> kind: "image",
>> name: "140.jpg",
>> width: "764",
>> height: "1068",
>> size: "255031"
>> }
>> },
>> {
>> id: "116684826989320284f90c4cf4013143",
>> score: 1,
>> fields: {
>> kind: "image",
>> name: "93.jpg",
>> width: "656",
>> height: "836",
>> size: "47173"
>> }
>> }
>> ]
>> }
>>
>>
>> I've tried setting "Content-Type" header to "application/json" (via Apache
>> HttpClient), but still get this error. Same result via a browser.
>> It was working fine in 1.0.x
>>
>> Could someone help?
>>
>> Thanks,
>> Gary
>>
>
Re: couchdb 1.1, couchdb lucene, include_docs=true
Posted by Robert Newson <ro...@gmail.com>.
I believe this bug was fixed on Dec 7 2010
(https://github.com/rnewson/couchdb-lucene/commit/6f81165a786e1b1130e3683fa334f3e9ce5611ab)
on the 0.6.x branch.
I'll review the branch and push out a 0.6.1 release.
B.
On 7 June 2011 06:35, Gary Thomas <7z...@gmail.com> wrote:
> Hi all,
>
> Having trouble with couchdb 1.1 together couchdb lucene 0.6 and using the
> include_docs=true parameter. It was working fine with couchdb 1.0.x
>
>
> When I do this GET to a lucene view and use include_docs=true:
>
> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image&include_docs=true
>
> I get this error:
>
> {
> code: 500
> reason: "{"error":"bad_content_type","reason":"Content-Type must be
> application/json"} "
> }
>
> When I leave include_docs off, it works fine:
>
> http://localhost:5984/test/_fti/_design/test/by_path?q=kind:image
>
> {
> q: "kind:image",
> etag: "1224e617cb465190",
> skip: 0,
> total_rows: 2,
> search_duration: 2,
> fetch_duration: 9,
> rows: [
> {
> id: "116684826989320284f90c4cf472b94e",
> score: 1,
> fields: {
> kind: "image",
> name: "140.jpg",
> width: "764",
> height: "1068",
> size: "255031"
> }
> },
> {
> id: "116684826989320284f90c4cf4013143",
> score: 1,
> fields: {
> kind: "image",
> name: "93.jpg",
> width: "656",
> height: "836",
> size: "47173"
> }
> }
> ]
> }
>
>
> I've tried setting "Content-Type" header to "application/json" (via Apache
> HttpClient), but still get this error. Same result via a browser.
> It was working fine in 1.0.x
>
> Could someone help?
>
> Thanks,
> Gary
>