redlink-gmbh / smarti

Smarti is a service component for conversational data.
http://dev.redlink.io/smarti
Apache License 2.0
6 stars 4 forks source link

Use context term boosts for Rocket.Chat Search with Chatpal provider #288

Open westei opened 6 years ago

westei commented 6 years ago

With chatpal/chatpal-search-solr-ext#7 it is now possible to parse raw solr queries to chatpal. This allows to use the boosts provided by the Rocket.Chat query providers for context query.

The Rocket.Chat search query needs to use the same text parameter as present so that context queries do work with Rocket.Chat is configured with an other query provider as Chatpal.

But within the params the new query parameter can be used to provide a more precise context query that is only interpreted if Chatpal is configured as Rocket.Chat search provider

this Query needs to look like {term1}^{boost1} {term2}^{boost2} "{multi word term3}"^{boost3}

westei commented 5 years ago

Notes: