Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for full text search #450

Open
flimzy opened this issue Feb 28, 2020 · 5 comments
Open

Add support for full text search #450

flimzy opened this issue Feb 28, 2020 · 5 comments

Comments

@flimzy
Copy link
Member

flimzy commented Feb 28, 2020

CouchDB 3.0.0 adds (optional) full-text support through the _search endpoint. Support should be added for this, and the related _search_analyze endpoint.

@flimzy flimzy added this to the v3.1.0 milestone Feb 29, 2020
@flimzy
Copy link
Member Author

flimzy commented Feb 29, 2020

The following endpoints were added:

  • GET /{db}/_design/{ddoc}/_search/{index}
  • GET /{db}/_design/{ddoc}/_search_info/{index}
  • POST /_search_analyze

@flimzy
Copy link
Member Author

flimzy commented Feb 29, 2020

I think I can add three methods to satisfy this new API:

  • Search(), the analog to Query() and Find(), will be used to perform search queries.
  • SearchInfo() will be used for the _search_info endpoint
  • SearchAnalyze will be the analog to Explain for mango queries.

@flimzy
Copy link
Member Author

flimzy commented Mar 15, 2020

Testing this functionality is non-trivial, as starting the Lucene plugin is not currently possible with standard Docker. For now I'm putting this on hold until it is easier to test, or there is a pressing need for it, to serve as motivation to device an alternate testing method.

@flimzy flimzy removed this from the v3.1.0 milestone May 2, 2020
@rossmerr
Copy link

rossmerr commented Oct 8, 2020

Hey I got this working in docker following the guide at apache/couchdb-docker#8 (comment)

so can we add this back in?

@flimzy
Copy link
Member Author

flimzy commented Oct 8, 2020

Thanks for the heads-up, @rossmerr! That's very promising, and full text search is something I'm likely to need at work soon, so I'll see about getting around to working on this feature when time permits (and a PR is course welcome if someone else has time before I get to it).

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

No branches or pull requests

2 participants