Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create a schema with ConcatenateFilterFactory #80

Closed
Endmaril opened this issue May 16, 2018 · 2 comments
Closed

Can't create a schema with ConcatenateFilterFactory #80

Endmaril opened this issue May 16, 2018 · 2 comments

Comments

@Endmaril
Copy link

Hello,

First thanks for this great contribution.
I am trying to setup a solr server with the text tagger but I can't manage to create a collection using the ConcatenateFilterFactory without getting an exception.

I tried compiling the 2.4 version and using it with solr 6.6.2.
I copied the solr-text-tagger-2.4.jar to the server/lib directory of my freshly downloaded version of solr, started solr and tried to follow the steps of the quick start guide. When trying to create the schema, I end up with a
java.lang.ClassNotFoundException: org.apache.lucene.analysis.util.TokenFilterFactory

I tried adding some of the Lucene's jars to the lib folder to get rid of that (even though it didn't seem to be the right thing to do) and ended up with
java.lang.ClassCastException: class org.apache.lucene.analysis.tr.ApostropheFilterFactory
after adding lucene-core-6.6.2.jar and lucene-analyzers-common-6.6.2.jar to the server/lib directory.

I tried a similar process with a freshly downloaded solr 7.2.1 and text tagger 2.5 and got pretty similar results (Plugin init failure for [schema.xml] analyzer/filter: class org.opensextant.solrtexttagger.ConcatenateFilterFactory\nclass org.opensextant.solrtexttagger.ConcatenateFilterFactory instead of the ClassCastExcepction after adding the lucene dependencies).

I am probably missing something obvious but can't seem to find out what.
Do you have any idea that could help me a bit ?
Thanks

@dsmiley
Copy link
Member

dsmiley commented May 16, 2018

Hi,
See https://github.com/OpenSextant/SolrTextTagger/blob/master/QUICK_START.md
Note where it says "Install the Tagger", that it references SOLR_DIST_DIR/server/solr/lib/ which is not quite what you did. That lib dir may not be there so create it if need be.

@Endmaril
Copy link
Author

Thanks for the quick response.
Everything works as expected when putting the jar at this location.
I misread the location in the first place (missed something obvious as i said).
Thanks for pointing out the thing I missed and sorry for this little mistake.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants