On 11/11/22 00:32, Maulin Rathod wrote:
On Windows, I have installed python3 and now I am able to execute
'.\gradlew clean dev' successfully.

I want to add/modify solr code (e.g. Adding new plugin/Stream Decorator)
and debug it locally.
Is there any documentation which describes how to create a new
plugin/Stream Decorator?

I don't think there is.  Your best option is to examine code in Solr or Lucene for existing classes of the same sort of plugin you want to create and use that as a template for your plugin.  What kind of plugin did you want to write?  There are a lot of possibilities.  Somebody here can figure out what class to use for inspiration.  If you are wanting to do a stream decorator (your question includes that) then I have no idea what class in Solr you would want to use as  astarting point.  I can't find any examples when I search the codebase, so apparently I do not know what to search for.

As for the way to build a project for the plugin, use your favorite Java project building mechanism and have it add solr-core as a compile dependency, but not a build dependency.  I generally use https://start.spring.io to build a new project and import that into eclipse.  The nice thing about that is that when you compile it, you'll get two jars ... one with just your code and one with all the dependencies included.  You would most likely want to use the one with just your code.  It's a bad idea for a plugin to include any classes already loaded into Solr.  That tends to cause problems, even if those classes are identical to what Solr already has.

Thanks,
Shawn

Reply via email to