Hi Moazzam, Yup i hv encountered the same thing. Build errors after applying the patch.
Rakhi On Thu, Jun 17, 2010 at 3:33 AM, Moazzam Khan <moazz...@gmail.com> wrote: > I got the code from trunk again and now I get this error: > > [javac] symbol : class StringIndex > [javac] location: interface org.apache.lucene.search.FieldCache > [javac] private final Map<String, FieldCache.StringIndex> > fieldCaches = > new HashMap<String, FieldCache.StringIndex>(); > [javac] ^ > [javac] > C:\svn\solr\src\java\org\apache\solr\search\SolrIndexSearcher.java:6 > 74: cannot find symbol > [javac] symbol : class DocSetScoreCollector > [javac] location: class org.apache.solr.search.SolrIndexSearcher > [javac] if (query instanceof TermQuery && !(collector instanceof > Doc > SetScoreCollector)) { > [javac] > ^ > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\AbstractDo > cumentCollapser.java:257: cannot find symbol > [javac] symbol : method > getStringIndex(org.apache.solr.search.SolrIndexRead > er,java.lang.String) > [javac] location: interface org.apache.lucene.search.FieldCache > [javac] fieldValues = > FieldCache.DEFAULT.getStringIndex(searcher.getRead > er(), collapseField); > [javac] ^ > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > AggregateCollapseCollectorFactory.java:163: cannot find symbol > [javac] symbol : class StringIndex > [javac] location: interface org.apache.lucene.search.FieldCache > [javac] private final Map<String, FieldCache.StringIndex> > fieldCaches = > new HashMap<String, FieldCache.StringIndex>(); > [javac] > ^ > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > AggregateCollapseCollectorFactory.java:173: cannot find symbol > [javac] symbol : method > getStringIndex(org.apache.solr.search.SolrIndexRead > er,java.lang.String) > [javac] location: interface org.apache.lucene.search.FieldCache > [javac] fieldCaches.put(fieldName, > FieldCache.DEFAULT.getStringInd > ex(searcher.getReader(), fieldName)); > [javac] ^ > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > AggregateCollapseCollectorFactory.java:183: cannot find symbol > [javac] symbol : class StringIndex > [javac] location: interface org.apache.lucene.search.FieldCache > [javac] FieldCache.StringIndex stringIndex = > fieldCaches.get(aggrega > teField.getFieldName()); > [javac] ^ > [javac] Note: Some input files use or override a deprecated API. > [javac] Note: Recompile with -Xlint:deprecation for details. > [javac] Note: Some input files use unchecked or unsafe operations. > [javac] Note: Recompile with -Xlint:unchecked for details. > [javac] 10 errors > > > I am compiling using jdk 1.5 update 22. Does that have anything to do > with the errors? > > -Moazzam > > On Wed, Jun 16, 2010 at 4:34 PM, Moazzam Khan <moazz...@gmail.com> wrote: > > I did the same thing. And, the code compiles without the patch but > > when I apply the patch I get these errors: > > > > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > > FieldValueCountCollapseCollectorFactory.java:127: class, interface, or > enum expe > > cted > > [javac] import java.util.HashMap; > > [javac] ^ > > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > > FieldValueCountCollapseCollectorFactory.java:128: class, interface, or > enum expe > > cted > > [javac] import java.util.Map; > > [javac] ^ > > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > > aggregate\AggregateFunction.java:70: class, interface, or enum expected > > [javac] package > org.apache.solr.search.fieldcollapse.collector.aggregate; > > [javac] ^ > > [javac] > C:\svn\solr\src\java\org\apache\solr\search\fieldcollapse\collector\ > > aggregate\AggregateFunction.java:72: class, interface, or enum expected > > [javac] import org.apache.solr.search.fieldcollapse.CollapseGroup; > > [javac] ^ > > [javac] 52 errors > > > > > > I got the source from : > > > > http://svn.apache.org/repos/asf/lucene/dev/trunk > > > > and got the patch from : > > > > > https://issues.apache.org/jira/secure/attachment/12440108/SOLR-236-trunk.patch > > > > > > Any ideas what's going wrong? > > > > > > > > > > On Wed, Jun 16, 2010 at 11:40 AM, Eric Caron <eric.ca...@gmail.com> > wrote: > >> I've had the best luck checking out the newest Solr/Lucene (so the > 1.5-line) > >> from SVN, then just doing "patch -p0 < SOLR-236-trunk.patch" from inside > the > >> trunk directory. I just did it against the newest checkout and it works > fine > >> still. > >> > >> On Wed, Jun 16, 2010 at 11:35 AM, Moazzam Khan <moazz...@gmail.com> > wrote: > >> > >>> Actually I take that back. I am just as lost as you. I wish there was > >>> a tutorial on how to do this (although I get the feeling that once I > >>> know how to do it I will go "ohh... I can't believe I couldn't figure > >>> that out") > >>> > >>> - Moazzam > >>> > >>> On Wed, Jun 16, 2010 at 8:25 AM, Moazzam Khan <moazz...@gmail.com> > wrote: > >>> > Hi Rakhi, > >>> > > >>> > You are supposed to get the code for solr 1.4 from SVN here: > >>> > http:/svn.apache.org/repos/asf/lucene/solr/tags/ > >>> > > >>> > Then apply the path to it and comppile. It should work. > >>> > > >>> > > >>> > However, you will probably get an error at run time saying some java > >>> > class is missing. I haven't been able to figure out what to do after > >>> > that. > >>> > > >>> > > >>> > > >>> > - moazzam > >>> > http://moazzam-khan.com > >>> > > >>> > On Wed, Jun 16, 2010 at 3:37 AM, Rakhi Khatwani <rkhatw...@gmail.com > > > >>> wrote: > >>> >> Hi, > >>> >> I wanted to try out field collapsing for a requirement. i went > >>> through > >>> >> the wiki and solr-236. but there are lot of patch files. and the > >>> comments > >>> >> below left me confused. > >>> >> > >>> >> i tried applyin the patch file on 1.4.0 release but ended up with > many > >>> >> compile errors. > >>> >> i even downloaded the latest code from the repository and applied > the > >>> >> patch(solr-trunk-236 dtd 16th May 2010). but ended up with build > errors. > >>> >> > >>> >> Can someone tell me which patch file to apply on which build? so > that i > >>> can > >>> >> get collapsing working? > >>> >> > >>> >> Regards, > >>> >> Raakhi. > >>> >> > >>> >> On Thu, Mar 25, 2010 at 11:15 PM, Rob Z <zman...@hotmail.com> > wrote: > >>> >> > >>> >>> > >>> >>> What do you mean you had to revert to Trunk 1.5. Do you mean > upgrade? > >>> Which > >>> >>> version were you using before hand? > >>> >>> > >>> >>> Can you please list the exact version of 1.5 and the patch # you > used. > >>> I > >>> >>> downloaded the latest nightly build and tried patching using the > 2/1 > >>> patch. > >>> >>> Everything went ok but I am getting 1 failing test. > >>> >>> > >>> >>> Would you recommend using the latest nightly 1.5 build or 1.4 for > >>> >>> production use? I really need this feature so I don't think I have > much > >>> of a > >>> >>> choice. Can you also explain the performance implications you are > >>> seeing AND > >>> >>> what configuration tweaks you've used that helped. > >>> >>> > >>> >>> Thanks! > >>> >>> > >>> >>> > From: mark.robe...@red-gate.com > >>> >>> > To: solr-user@lucene.apache.org > >>> >>> > Date: Thu, 25 Mar 2010 15:21:54 +0000 > >>> >>> > Subject: RE: Field Collapsing SOLR-236 > >>> >>> > > >>> >>> > Yeah got it working fine - but I needed to revert to Trunk (1.5) > to > >>> get > >>> >>> the patch to apply. > >>> >>> > > >>> >>> > It does certainly have some performance implications, but > tweaking > >>> >>> configuration can help here. > >>> >>> > > >>> >>> > Overall the benefits very much outweigh the costs for us :) > >>> >>> > > >>> >>> > Mark. > >>> >>> > > >>> >>> > > >>> >>> > -----Original Message----- > >>> >>> > From: Dennis Gearon [mailto:gear...@sbcglobal.net] > >>> >>> > Sent: 25 March 2010 00:49 > >>> >>> > To: solr-user@lucene.apache.org > >>> >>> > Subject: Re: Field Collapsing SOLR-236 > >>> >>> > > >>> >>> > Boy, I hope that field collapsing works! I'm planning on using it > >>> >>> heavily. > >>> >>> > Dennis Gearon > >>> >>> > > >>> >>> > Signature Warning > >>> >>> > ---------------- > >>> >>> > EARTH has a Right To Life, > >>> >>> > otherwise we all die. > >>> >>> > > >>> >>> > Read 'Hot, Flat, and Crowded' > >>> >>> > Laugh at http://www.yert.com/film.php > >>> >>> > > >>> >>> > > >>> >>> > --- On Wed, 3/24/10, blargy <zman...@hotmail.com> wrote: > >>> >>> > > >>> >>> > > From: blargy <zman...@hotmail.com> > >>> >>> > > Subject: Field Collapsing SOLR-236 > >>> >>> > > To: solr-user@lucene.apache.org > >>> >>> > > Date: Wednesday, March 24, 2010, 12:17 PM > >>> >>> > > > >>> >>> > > Has anyone had any luck with the field collapsing patch > >>> >>> > > (SOLR-236) with Solr > >>> >>> > > 1.4? I tried patching my version of 1.4 with no such luck. > >>> >>> > > > >>> >>> > > Thanks > >>> >>> > > -- > >>> >>> > > View this message in context: > >>> >>> > >>> > http://old.nabble.com/Field-Collapsing-SOLR-236-tp28019949p28019949.html > >>> >>> > > Sent from the Solr - User mailing list archive at > >>> >>> > > Nabble.com. > >>> >>> > > > >>> >>> > > > >>> >>> > >>> >>> _________________________________________________________________ > >>> >>> Hotmail: Trusted email with Microsoft’s powerful SPAM protection. > >>> >>> http://clk.atdmt.com/GBL/go/210850552/direct/01/ > >>> >>> > >>> >> > >>> > > >>> > >> > > >