Hi Johnny,

The patch at SOLR-2237 has already been applied to trunk (see the final comment 
on the issue, where Robert Muir stated that he committed the patch).

So just check out trunk - don't use the "-r {2010-11-15}" option to "svn co".

Good luck,
Steve

> -----Original Message-----
> From: johnnyisrael [mailto:johnnyi.john...@gmail.com]
> Sent: Monday, January 03, 2011 2:55 AM
> To: solr-user@lucene.apache.org
> Subject: Problem while creating Polish supported SOLR artifact creation
> 
> 
> Hi,
> 
> I am new to do SOLR patching, Can anyone help me to do this?
> 
> I am trying to apply this patch [SOLR-2237.patch] to include polish
> character support in SOLR.
> 
> https://issues.apache.org/jira/browse/SOLR-2237
> 
> I did the following steps:
> 
> 1) svn co -r {2010-11-15} http://svn.apache.org/repos/asf/lucene/dev/trunk
> lucene-dev-trunk
> 
> 2) cd lucene-dev-trunk
> 
> 3) wget
> https://issues.apache.org/jira/secure/attachment/12459598/SOLR-2237.patch
> 
> 4) patch -p0 -i SOLR-2237.patch --dry-run
> 
> (Stripping trailing CRs from patch.)
> patching file
> solr/contrib/analysis-
> extras/src/test/org/apache/solr/analysis/TestStempelPolishStemFilterFactor
> y.java
> (Stripping trailing CRs from patch.)
> patching file
> solr/contrib/analysis-
> extras/src/java/org/apache/solr/analysis/StempelPolishStemFilterFactory.ja
> va
> (Stripping trailing CRs from patch.)
> patching file
> modules/analysis/stempel/src/java/org/apache/lucene/analysis/stempel/Stemp
> elStemmer.java
> (Stripping trailing CRs from patch.)
> patching file
> modules/analysis/stempel/src/java/org/apache/lucene/analysis/pl/PolishAnal
> yzer.java
> 
> I believe patch was successfully completed.
> 
> 5) ant
> 
> I got the following compilation errors.
> 
> common.compile-core:
>     [javac] Compiling 123 source files to
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/build/classes/java
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:472:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.IntValuesCreator
>     [javac]       return new FieldComparator.IntComparator(numHits,
> (IntValuesCreator)creator, (Integer)missingValue );
>     [javac]
> ^
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:475:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.FloatValuesCreator
>     [javac]       return new FieldComparator.FloatComparator(numHits,
> (FloatValuesCreator)creator, (Float)missingValue );
>     [javac]
> ^
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:478:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.LongValuesCreator
>     [javac]       return new FieldComparator.LongComparator(numHits,
> (LongValuesCreator)creator, (Long)missingValue );
>     [javac]
> ^
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:481:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.DoubleValuesCreator
>     [javac]       return new FieldComparator.DoubleComparator(numHits,
> (DoubleValuesCreator)creator, (Double)missingValue );
>     [javac]
> ^
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:484:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.ByteValuesCreator
>     [javac]       return new FieldComparator.ByteComparator(numHits,
> (ByteValuesCreator)creator, (Byte)missingValue );
>     [javac]
> ^
>     [javac]
> /home/test/lucene-dev-trunk-Nov-2010-
> exported_test/lucene/src/java/org/apache/lucene/search/SortField.java:487:
> inconvertible types
>     [javac] found   :
> org.apache.lucene.search.cache.CachedArrayCreator<capture of ?>
>     [javac] required: org.apache.lucene.search.cache.ShortValuesCreator
>     [javac]       return new FieldComparator.ShortComparator(numHits,
> (ShortValuesCreator)creator, (Short)missingValue );
>     [javac]
> ^
>     [javac] 6 errors
> 
> Again I tried the following
> 
> 5) cd solr
> 
> 6) ant dist
> 
> Again I got the same above six error messages. I also tried the checkout
> the
> latest code from lucene trunk, Still I could not able to make it up.
> 
> Can anyone provide a solution for this?
> 
> It would be really helpful if I get latest polish supported solr war file
> readily available.
> 
> Thanks,
> 
> Johnny
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Problem-
> while-creating-Polish-supported-SOLR-artifact-creation-
> tp2183507p2183507.html
> Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to