Skip to content
This repository has been archived by the owner on May 4, 2023. It is now read-only.

Are highlights working using CouchDB 2.0 #244

Open
rvanzon opened this issue Apr 3, 2017 · 6 comments
Open

Are highlights working using CouchDB 2.0 #244

rvanzon opened this issue Apr 3, 2017 · 6 comments

Comments

@rvanzon
Copy link

rvanzon commented Apr 3, 2017

Hi, I am trying to get highlights working.

With this query it's not working (the highlights array is not present):
http://localhost:5986/_fti/local/my_database/_design/search/by_body?q=keyword&highlights=10

Should this work?

@rnewson
Copy link
Owner

rnewson commented Apr 5, 2017

It should work the same as before. I can't dig into this right now but hopefully at the weekend, thanks for the report.

@rvanzon
Copy link
Author

rvanzon commented Apr 5, 2017

okay great! Maybe it's something with CouchDB?
If I can assist, please tell me.

@rnewson
Copy link
Owner

rnewson commented Apr 5, 2017

as long as you got any results with your query, the &highlights=10 should have done something, so I think this is a couchdb-lucene bug. hopefully a simple one :)

@rvanzon
Copy link
Author

rvanzon commented Apr 5, 2017

I just checked again, to be sure. There are results as expected, but no highlights:

{"q":"default:gras","fetch_duration":10,"total_rows":812,"limit":25,"search_duration":0,"etag":"1c68201f053f4","skip":0,"rows": [ ... ]}

(btw, I am pretty content with search_duration: 0 ;)

@rnewson
Copy link
Owner

rnewson commented Apr 5, 2017

:)

@rnewson
Copy link
Owner

rnewson commented Apr 25, 2017

sorry for huge delay on this. I did try to get highlights to show locally without luck, so it does seem to be not working. I can't see why just yet though.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants