collective / collective.solr

Solr search engine integration for Plone
https://pypi.org/project/collective.solr/
22 stars 46 forks source link

Elevation support #57

Open pilz opened 9 years ago

pilz commented 9 years ago

c.solr or c.r.solrinstance could be shipped with elevation support configuration example.

Those configurations should be tested (on travis) and included directly in the docs to make sure we have working and up-to-date configurations in our docs.

https://cwiki.apache.org/confluence/display/solr/The+Query+Elevation+Component

loechel commented 9 years ago

@gforcada why have you unassigne @pilz ?

gforcada commented 9 years ago

@loechel that was a mistake, I was looking at it through my phone and I though that I accidentally clicked on it, so I reverted what I thought I had done.

Thanks for pointing it out, I will fix it right away!

reinhardt commented 9 years ago

AFAICT elevation is already implemented with the "showinsearch" and "searchwords" fields:

https://github.com/collective/collective.solr/blob/master/README.rst#exclude-from-search-and-elevation

Dexterity/plone.app.contenttypes support seems to be missing, though.

tisto commented 9 years ago

showinsearch works for dx types. not sure about searchwords.

reinhardt commented 9 years ago

I see that it would work if I manually added the fields "showinsearch" and "searchwords" on a dx type. Is that what you mean? I was thinking about something analogous to the general schema extender for at types. See my pull request.

tisto commented 9 years ago

Yeah. Your pr is the right way to do it...