lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject [Solr Wiki] Trivial Update of "HowToContribute" by ErickErickson
Date Sun, 16 Sep 2012 16:56:17 GMT
Dear Wiki user,

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

The "HowToContribute" page has been changed by ErickErickson:
http://wiki.apache.org/solr/HowToContribute?action=diff&rev1=76&rev2=77

Comment:
Added comments about getting/running jflex...

  
  '''Note:''' Fixing these issues may require asking questions on the developer list to figure
out what they mean - there is no guarantee that any of these will be either quick or easy.
  
+ == Parsers and JFlex ==
+ '''YOU PROBABLY DON'T HAVE TO DO THIS''' but if you do for some reason want to regenerate
the .java from the .jflex files, here's the cheat-sheet. This is a separate step that people
who actually ''like'' parsers sometimes have to execute to reflect changes in various grammars.
+  * Check out the most recent jflex branch. This is important since what Lucene uses is based
on trunk rather than a released version (thanks for tutoring me Uwe!). Do this by executing:
svn co https://jflex.svn.sourceforge.net/svnroot/jflex/trunk jflex
+  * cd jflex
+  * mvn install
+  * cd <solr_home>/lucene/analysis/common
+  * export ANT_OPTS="-Xmx1G -XX:+CMSClassUnloadingEnabled -XX:MaxPermSize=1G" (1) 
+  * ant jflex
+ 
+ (1) I was getting OOM errors when running "ant jflex", and got a tip to do this, which made
that problem go away. You may not have to be so generous with memory, but this worked... (Thanks
Steve!).
+ 
  == One final note ==
  As always, there are gremlins out there.  If you find problems with the information here,
and especially if you subsequently find solutions to the problems you find, please either
write to the solr-user mailing list or update this page directly so others can benefit.
  

Mime
View raw message