Re: ClassCastException: BasicResultContext cannot be cast to SolrDocumentList

2016-12-20 Thread Yonik Seeley
This is a bug (that code should no longer be expecting a SolrDocumentList) Can you open a JIRA issue? -Yonik On Tue, Dec 20, 2016 at 12:02 PM, Yago Riveiro wrote: > I'm hitting this exception in 6.3.0, any ideas? > > null:java.lang.Clas

ClassCastException: BasicResultContext cannot be cast to SolrDocumentList

2016-12-20 Thread Yago Riveiro
3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745) - Best regards -- View this message in context: http://lucene.472066.n3.nabble.com/ClassCastException-BasicResultContext-cannot-be-cast-to-SolrDocumentList-tp4310523.html Sent from the Solr - User mailing list archive at Nabble.com.

SolrCloud - ResultContext versus SolrDocumentList in distributed mode

2014-02-10 Thread Elodie Sannier
Hello, I am using SolrCloud 4.5.1 with one shard and three replicas and I am using the distributed mode. I am using a custom SearchHandler which makes two sub-queries and merges the responses. When I merge the SolrQueryResponse objects I do the following casting : SolrDocumentList

Re: SolrDocumentList - bitwise operation

2013-10-17 Thread Michael Tyler
and test the performance. > > > > > > Regards > > Michael > > > > > > On Sun, Oct 13, 2013 at 8:54 PM, Shawn Heisey wrote: > > > > > On 10/13/2013 8:34 AM, Michael Tyler wrote: > > > > Hello, > > > > > > > > I

Re: SolrDocumentList - bitwise operation

2013-10-15 Thread Erick Erickson
Sun, Oct 13, 2013 at 8:54 PM, Shawn Heisey wrote: > > > On 10/13/2013 8:34 AM, Michael Tyler wrote: > > > Hello, > > > > > > I have 2 different solr indexes returning 2 different sets of > > > SolrDocumentList. Doc Id is the foreign key relation. >

Re: SolrDocumentList - bitwise operation

2013-10-14 Thread Michael Tyler
mance. Regards Michael On Sun, Oct 13, 2013 at 8:54 PM, Shawn Heisey wrote: > On 10/13/2013 8:34 AM, Michael Tyler wrote: > > Hello, > > > > I have 2 different solr indexes returning 2 different sets of > > SolrDocumentList. Doc Id is the foreign key relation. > &g

Re: SolrDocumentList - bitwise operation

2013-10-13 Thread Shawn Heisey
On 10/13/2013 8:34 AM, Michael Tyler wrote: > Hello, > > I have 2 different solr indexes returning 2 different sets of > SolrDocumentList. Doc Id is the foreign key relation. > > After obtaining them, I want to perform "AND" operation between them and > then

Re: SolrDocumentList - bitwise operation

2013-10-13 Thread Liu Bo
r indexes returning 2 different sets of > SolrDocumentList. Doc Id is the foreign key relation. > > After obtaining them, I want to perform "AND" operation between them and > then return results to user. Can you tell me how do I get this? I am using > solr 4.3 > > SolrDocume

SolrDocumentList - bitwise operation

2013-10-13 Thread Michael Tyler
Hello, I have 2 different solr indexes returning 2 different sets of SolrDocumentList. Doc Id is the foreign key relation. After obtaining them, I want to perform "AND" operation between them and then return results to user. Can you tell me how do I get this? I am usin

Re: Doc Transformer with SolrDocumentList object

2013-04-10 Thread Erick Erickson
for a query. > > So please can anyone help. > > I wrote a java code that returns the SolrDocumentList object which is a > union of the results I want this object to be displayed on solr. > > hats is once the query is hit. The solr runs the java code i wrote and the > ou

Doc Transformer with SolrDocumentList object

2013-04-09 Thread neha yadav
I am trying to modify the results of solr output . basically I need to change the ranking of the output of solr for a query. So please can anyone help. I wrote a java code that returns the SolrDocumentList object which is a union of the results I want this object to be displayed on solr. hats

Re: solrDocumentList

2012-06-02 Thread Erik Hatcher
Set those fields to be single valued (not multivalued). And reindex :) Erik On Jun 2, 2012, at 0:10, gopes wrote: > We are using Lucid UI and solr to index our collection of xml files. I am > getting the solrDocumentList like this > [SolrDocument[{id=1331226833510, Street_Addr=[

solrDocumentList

2012-06-01 Thread gopes
We are using Lucid UI and solr to index our collection of xml files. I am getting the solrDocumentList like this [SolrDocument[{id=1331226833510, Street_Addr=[113 113TH ST], name=[113 113TH ST SASKATOON SK S7N1V8], Municipality_Name=[SASKATOON], Province_Code=[SK], Postal_Code=[S7N1V8]}] But I

Re: Convert a SolrDocumentList to DocList

2012-04-20 Thread Erick Erickson
OK, this description really sounds like an XY problem. Why do you want to do this? What is the higher-level problem you're trying to solve? Best Erick On Fri, Apr 20, 2012 at 9:18 AM, Ramprakash Ramamoorthy wrote: > Dear all, > >        Is there any way I can convert a SolrDoc

Convert a SolrDocumentList to DocList

2012-04-20 Thread Ramprakash Ramamoorthy
Dear all, Is there any way I can convert a SolrDocumentList to a DocList and set it in the QueryResult object? Or, the workaround adding a SolrDocumentList object to the QueryResult object? -- With Thanks and Regards, Ramprakash Ramamoorthy, Project Trainee, Zoho Corporation

Re: Sorting solrdocumentlist object after querying

2012-02-10 Thread Kashif Khan
hey Tommaso, That result grouping is during the query but i want to sort the solrdocumentlist after it has been queried and i hv injected few solrdocs in the solrdocumentlist. Thus i want this solrdocumentlist to be sorted based on the fields i specify and cannot query the solr for result

Re: Sorting solrdocumentlist object after querying

2012-02-09 Thread Tommaso Teofili
Hi Kashif, maybe the field collapsing feature [1] may help you with your requirement. Hope this helps, Tommaso [1] : http://wiki.apache.org/solr/FieldCollapsing

Re: Sorting solrdocumentlist object after querying

2012-02-08 Thread Kashif Khan
by some fields and then take 20 records for paging. So i need some shortcut for that. -- Kashif Khan. http://www.kashifkhan.in On Wed, Feb 8, 2012 at 11:07 PM, iorixxx [via Lucene] < ml-node+s472066n3726788...@n3.nabble.com> wrote: > > I want to sort a SolrDocumentList after it has

Re: Sorting solrdocumentlist object after querying

2012-02-08 Thread Ahmet Arslan
> I want to sort a SolrDocumentList after it has been queried > and obtained > from the QueryResponse.getResults(). The reason is i have a > SolrDocumentList > obtained after querying using QueryResponse.getResults() and > i have added > few docs to it. Now i want to sort

Sorting solrdocumentlist object after querying

2012-02-08 Thread Kashif Khan
Hi all, I want to sort a SolrDocumentList after it has been queried and obtained from the QueryResponse.getResults(). The reason is i have a SolrDocumentList obtained after querying using QueryResponse.getResults() and i have added few docs to it. Now i want to sort this SolrDocumentList based on

SolrDocumentList in Distributed search

2011-06-26 Thread Jason, Kim
Hi All I have 5 shards. (sh01 ~ sh05) I was debugging using solrJ. When I quiried at each shard, results are right. But when I quiried at all shards, elementData of SolrDocumentList is null. But numFound of SolrDocumentList is right. How can I get the SolrDocumentList in shards? Thanks in Advance

Re: SolrDocumentList Size vs NumFound

2011-01-26 Thread Markus Jelsma
d documents is much more than > 10. However, the size of SolrDocumentList is 10 and the getNumFound() is > the exact count of results. When I need to iterate the results as follows, > only 10 are displayed. How to get the rest ones? > > .. >

SolrDocumentList Size vs NumFound

2011-01-26 Thread Bing Li
Dear all, I got a weird problem. The number of searched documents is much more than 10. However, the size of SolrDocumentList is 10 and the getNumFound() is the exact count of results. When I need to iterate the results as follows, only 10 are displayed. How to get the rest ones

Re: How to iterate the solrdocumentlist result

2009-05-03 Thread Avlesh Singh
SolrDocumentList extends an ArrayList. You can iterate on it the way you would do on a list. Here's an example for(SolrDocument doc : listingSearchResponse.getResults()){ > System.out.print(doc.getFieldValue("yourFieldName")); > } > Cheers Avlesh On Mon, May 4, 2009 a

How to iterate the solrdocumentlist result

2009-05-03 Thread ahmed baseet
Hi All, I'm able to get the whole result bundle by using the following method, QueryResponse qr = server.query(query); SolrDocumentList sdl = qr.getResults(); but I'm not able to iterate over the results. I converted this to string and displayed that and that