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

[VUFIND-1184] Added a method for extracting search terms for spellche… #742

Closed
wants to merge 3 commits into from

Conversation

EreMaijala
Copy link
Contributor

@EreMaijala EreMaijala commented Jun 28, 2016

…ck queries so that extra Lucene syntax is stripped out.

I tested the ZendSearch module, but it didn't quite offer the functionality and seemed to be somewhat unmaintained with last commit from 21 Jan 2015. I also took a look at multiple Solr/Lucene components available in packagist.org, but they seem to concentrate on creating queries, understandably. So here we go with a simplistic way of parsing the search terms from the query string.

…ck queries so that extra Lucene syntax is stripped out.
@crhallberg
Copy link
Contributor

crhallberg commented Jun 28, 2016

This looks good to me! The only snag I can imagine is that there was discussion of using the full parser in the Jira ticket. Although based on your implementation, that may be overkill.

I'll let Demian take a second look after his vacation this week and we'll merge next week!

@demiankatz
Copy link
Member

Manually merged to master with a couple of minor fixes and support for one more edge case: escaped quotation marks. Thanks for taking the test-driven approach here; definitely helps build confidence in the code!

@demiankatz demiankatz closed this Jul 6, 2016
@EreMaijala EreMaijala deleted the spellcheck-q branch August 23, 2016 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants