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

search queries failling with "Internal error processing query" #13

Closed
coolmeen opened this issue Dec 11, 2016 · 4 comments
Closed

search queries failling with "Internal error processing query" #13

coolmeen opened this issue Dec 11, 2016 · 4 comments

Comments

@coolmeen
Copy link

i tried out the main example from the wiki.

`27.0.0.1:6379>` FT.CREATE myIdx title 5.0 body 1.0 url 1.0
OK
127.0.0.1:6379> FT.ADD myIdx doc1 1.0 fields title "hello world" body "lorem ipsum" url "http://redis.io" 
OK
`127.0.0.1:6379> FT.SEARCH myIdx "http://re"
1) (integer) 0
127.0.0.1:6379> FT.SEARCH myIdx "hell"
(error) Internal error processing query
127.0.0.1:6379> FT.SEARCH myIdx "wor"
(error) Internal error processing query

i am using the latest redis (4.0-rc2)

@dvirsky
Copy link
Contributor

dvirsky commented Dec 11, 2016

the engine does not support incomplete word searches, there is a bug in reporting empty results, but the behavior for this search is indeed that no results are found. search for actual words in the corpus and you get proper results. anyway I'll fix this as well.

@dvirsky
Copy link
Contributor

dvirsky commented Dec 11, 2016

fixed in latest push to master.
BTW if you want to search for prefixes, use the SUGADD/SUGGET commands instead. The full-text index doesn't support prefix searches.

@dvirsky dvirsky closed this as completed Dec 11, 2016
@dvirsky
Copy link
Contributor

dvirsky commented Dec 12, 2016

@coolmeen can you confirm the fix please? Also, I've fixed the other issue you've reported, regarding 50 results.

@coolmeen
Copy link
Author

works great

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

No branches or pull requests

2 participants