'Apache Solr Vector Plugin Loading issue
I have been trying to get this example to work on my local Apache Solr installation. However, after following all of the steps, I am getting the following error when I try to add the core:
Error CREATEing SolrCore 'XXX': Unable to create core [XXX] Caused by: org.apache.solr.search.QParserPlugin
I have tried to read the log files to get a more detailed understanding, however it just repeats the same error. What am I doing incorrectly?
I placed the solr-vector-scoring-1.0.jar in the solr/dist directory, and within the core's solrconfig.xml:
<lib dir="${solr.install.dir:../../../..}/dist/" regex="solr-vector-scoring-1.0.jar" />
After this I placed the following line in the query parsers section:
<queryParser name="vp" class="com.github.saaay71.solr.VectorQParserPlugin" />
Within the schema.xml/managed-schema file I placed the following field type definition:
<fieldType name="VectorField" class="solr.TextField" indexed="true" termOffsets="true" stored="true" termPayloads="true" termPositions="true" termVectors="true" storeOffsetsWithPositions="true">
<analyzer>
<tokenizer class="solr.WhitespaceTokenizerFactory"/>
<filter class="solr.DelimitedPayloadTokenFilterFactory" encoder="float"/>
</analyzer>
</fieldType>
And also added the following field to the same file:
<field name="vector" type="VectorField" indexed="true" termOffsets="true" stored="true" termPositions="true" termVectors="true" multiValued="true"/>
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
