Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change 
notification.

The following page has been changed by GrantIngersoll:
http://wiki.apache.org/solr/CommitterInfo

------------------------------------------------------------------------------
  
  == Generating New Analysis Factories ==
  
- Anytime the Lucene jars are updated, we should attempt to generate Factories 
for any new !Tokenizer or !TokenFilter classes.  To do this, run `ant 
stub-factories -Dstub.src.path="./src:../lucene/contrib:../lucene/src/java"` 
Where the "stub.src.path" property is set to be a "path like list" of java 
source directories that should be crawled when looking for classes to make 
factories for.
+ Anytime the Lucene jars are updated, we should attempt to generate Factories 
for any new Tokenizer or !TokenFilter classes.  To do this, run `ant 
stub-factories -Dstub.src.path="./src:../lucene/contrib:../lucene/src/java"` 
Where the "stub.src.path" property is set to be a "path like list" of java 
source directories that should be crawled when looking for classes to make 
factories for.
  
- This task will first use reflection on all of the `dist` jars to find known 
subclasses of !Tokenizer or !TokenFilter which do not already have Factories 
and write this list to `build/need-stub-factories.txt`.  It will then crawl the 
directories specified in `stub.src.path` looking for the corresponding source 
files to determine what the constructor parameter names are (this info is not 
available in the byte code) for each class, and generate a new factory for it.  
+ This task will first use reflection on all of the `dist` jars to find known 
subclasses of Tokenizer or !TokenFilter which do not already have Factories and 
write this list to `build/need-stub-factories.txt`.  It will then crawl the 
directories specified in `stub.src.path` looking for the corresponding source 
files to determine what the constructor parameter names are (this info is not 
available in the byte code) for each class, and generate a new factory for it.  
  
  Classes with no special constructor parameters will get full fledged 
factories.  Classes with special params will get abstract "stub" factories that 
will not compile without human editing.
  

Reply via email to