mitodl / lore

Learning Object Repository for Education
https://goo.gl/nDVx4D
GNU Affero General Public License v3.0
16 stars 6 forks source link

As a user, I (may) want to search partial words #168

Open pdpinch opened 9 years ago

pdpinch commented 9 years ago

This needs some investigation

ShawnMilo commented 9 years ago

Appending an asterisk to a search does not produce "wildcard" results with our current configuration. Full words are still required.

carsongee commented 9 years ago

So does haystack not support lucene at all? https://lucene.apache.org/core/2_9_4/queryparsersyntax.html. That would be unfortunate

pwilkins commented 9 years ago

ES is built on top of Lucene. ref: https://www.elastic.co/guide/en/elasticsearch/guide/current/intro.html Hopefully, that fact is relevant.

ShawnMilo commented 9 years ago

Search results such as this seem to indicate that django-haystack is doing a contains search by default, but that we have to change the index configuration like so, which is what @giocalitri also suggested.