ryan
On Apr 20, 2009, at 10:16 AM, Jeff Newburn wrote:
What are the current issues holding this back? Seems to be working withsome minor bug fixes. -- Jeff Newburn Software Engineer, Zappos.com jnewb...@zappos.com - 702-943-7562org .apache .catalina.core.StandardHostValve.invoke(StandardHostValve.java:126>>>From: Otis Gospodnetic <otis_gospodne...@yahoo.com> Reply-To: <solr-user@lucene.apache.org> Date: Sun, 19 Apr 2009 20:30:22 -0700 (PDT) To: <solr-user@lucene.apache.org> Subject: Re: CollapseFilter with the latest Solr in trunk Once somebody really makes it work, I'm sure it will be released! Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ----From: Antonio Eggberg <antonio_eggb...@yahoo.se> To: solr-user@lucene.apache.org Sent: Sunday, April 19, 2009 9:21:20 PM Subject: Re: CollapseFilter with the latest Solr in trunk I wish it would be planned for 1.4 :)) --- Den sön 2009-04-19 skrev Otis Gospodnetic :org .apache .solr.search.CollapseFilter.adjacentCollapse(CollapseFilter.java:16Från: Otis Gospodnetic Ämne: Re: CollapseFilter with the latest Solr in trunk Till: solr-user@lucene.apache.org Datum: söndag 19 april 2009 15.06 Thanks for sharing! It would be good if you (of Jeff from Zappos or anyone making changes to this) could put up a new patch for this most-voted-JIRA-issue. Thanks, Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch ----- Original Message ----From: climbingrose To: solr-user@lucene.apache.org Sent: Sunday, April 19, 2009 8:12:11 AM Subject: Re: CollapseFilter with the latest Solr intrunkOk, here is how I fixed this problem: public DocListAndSetgetDocListAndSet(Query query, ListfilterList,DocSet docSet, Sort lsort, int offset, int len, intflags) throwsIOException {//DocListAndSet ret = newDocListAndSet();//getDocListC(ret,query,filterList,docSet,lsort,offset,len, flags |=GET_DOCSET); DocSet theFilt = getDocSet(filterList); if (docSet != null) theFilt = (theFilt != null) ? theFilt.intersection(docSet) : docSet; QueryCommand qc = newQueryCommand();qc.setQuery(query).setFilter(theFilt);qc.setSort(lsort).setOffset(offset).setLen(len).setFlags(flags |=GET_DOCSET); QueryResult result = newQueryResult();getDocListC(result,qc); returnresult.getDocListAndSet();} There is also one-off error in CollapseFilter whichyou can find solution onJira. Cheers, Cuong On Sat, Apr 18, 2009 at 4:41 AM, Jeff Newburn wrote:We are currently trying to do the samething. With the patch unaltered wecan use fq as long as collapsing is turnedon. If we just send a normaldocument level query with an fq parameter itblows up.Additionally, it does not appear that thecollapse.facet option works atall. -- Jeff Newburn Software Engineer, Zappos.com jnewb...@zappos.com- 702-943-7562From: climbingrose Reply-To: Date: Fri, 17 Apr 2009 16:53:00 +1000 To: solr-user Subject: CollapseFilter with the latest Solrin trunkHi all, Have any one try to use CollapseFilter withthe latest version of Solr intrunk? However, it looks like Solr 1.4doesn't allow callingsetFilterList()and setFilter() on one instance of theQueryCommand. I modified the codeinQueryCommand to allow this: public QueryCommandsetFilterList(Query f) {// if( filter != null ){// throw newIllegalArgumentException( "Either filter orfilterListmay be set in the QueryCommand, but notboth." );// } filterList =null;if (f !=null) {filterList = new ArrayList(2);filterList.add(f);} return this; } However, I still have a problem whichprevent query filters from workingwhen used in conjunction withCollapseFilter. In other words, queryfiltersdoesn't seem to have any effects on theresult set when CollapseFilter isused. The other problem is related to OpenBitSet: java.lang.ArrayIndexOutOfBoundsException:2183atorg.apache.lucene.util.OpenBitSet.fastSet(OpenBitSet.java:242)org.apache.solr.search.CollapseFilter.addDoc(CollapseFilter.java: 202)atat1>org .apache .solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:30)atorg.apache.solr.search.CollapseFilter.(CollapseFilter.java:141)org .apache .solr.handler.component.QueryComponent.process(QueryComponent.javaat:2org .apache .solr.handler.component.SearchHandler.handleRequestBody(SearchHand17) atleorg .apache .solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.r.java:195) atjava:131) atorg.apache.solr.core.SolrCore.execute(SolrCore.java:1333)at3>org .apache .solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:)at23org .apache .catalina.core.ApplicationFilterChain.internalDoFilter(Application2) atFiorg .apache .catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChlterChain.java:202) ataiorg .apache .catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.jan.java:173) atvaorg .apache .catalina.core.StandardContextValve.invoke(StandardContextValve.ja:213) atva:178) at)org .apache .catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105>>>at)org .apache .catalina.core.StandardEngineValve.invoke(StandardEngineValve.javaat:1org .apache .catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)07) atorg .apache .coyote.http11.Http11Processor.process(Http11Processor.java:869)atorg.apache.coyote.http11.Http11BaseProtocol $Http11ConnectionHandler.processCatonorg .apache .tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.javnection(Http11BaseProtocol.java:664) ata:org .apache .tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWo527) atrkorg.apache.tomcat.util.threads.ThreadPool $ControlRunnable.run(ThreadPool.javerThread.java:80) ata:684) at java.lang.Thread.run(Thread.java:619) I think CollapseFilter is rather animportant function in Solr that getsused quite frequently. Does anyone have asolution for this?-- Regards, Cuong Hoang-- Regards, Cuong Hoang___________________________________________________ Sök efter kärleken! Hitta din tvillingsjäl på Yahoo! Dejting: http://ad.doubleclick.net/clk;185753627;24584539;x?http://se.meetic.yahoo.net /index.php?mtcmk=148783