Skip to content

A minimal ready to use Solr distribution that contains the Solr Elevate Plugin along with a sample configuration

License

Notifications You must be signed in to change notification settings

kaismh/solr-elevate-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Solr Elevate Example

A minimal ready to use Solr distribution that contains the Solr Elevate Plugin along with a sample configuration.

Blog Article

A blog article introducing this plugin can be found here.

Solr Plugin

The Solr plugin can be found here.

Usage Guide

Deployment

  • git clone https://github.com/kaismh/solr-elevate-example
  • Import products.sql found inside data folder into MySQL
  • Change server/solr/products/conf/dataimport.properties and elevate-creator.properties to match your DB settings
  • cd solr-elevate-example
  • bin/solr start

Usage

To see elevation in action issue the following request:

http://localhost:8983/solr/products/elevate?q=linux

To view the result for same query but without elevation issue the following:

http://localhost:8983/solr/products/elevate?q=linux&enableElevation=false

Plugin

To see plugin in action perform the following:

  • Update elevation_query_text in the database
  • Start the DIH indexing by issuing the following:
http://localhost:8983/solr/products/dataimport?command=full-import
  • Check server/solr/products/data/elevate.xml for the changes and issue relevant elevate requests

Dataset

The dataset used it this example is based on Amazon E-commerce Products

License & Author

Solr Elevate Example is licensed under [Apache License 2.0] (http://www.apache.org/licenses/LICENSE-2.0.html). For license terms, see LICENSE.txt.

Created by Kais Hassan

About

A minimal ready to use Solr distribution that contains the Solr Elevate Plugin along with a sample configuration

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published