mitodl / lore

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

Discovery: include word proximity in search results #869

Open pdpinch opened 8 years ago

pdpinch commented 8 years ago

in multi-word searches, is there a way we can weight search results higher when the words appear in close proximity?

Another approach to #866

pdpinch commented 8 years ago

@pwilkins does this make sense?

pwilkins commented 8 years ago

Yes, Elasticsearch supports proximity. We "simply" have to add proximity support to the tool chain that generates an index. (The tool chain is called an analyzer.) This article section provides a high-level description of how this feature works.

https://www.elastic.co/blog/found-text-analysis-part-1#optimizing-phrase-searches-with-shingles

As @giocalitri mentioned in our f2f meeting, we should be prepared for this to create larger index files. Perhaps significantly larger.