You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by franagan <fr...@gmail.com> on 2013/07/23 22:44:03 UTC
socket write error Solrj 4.3.1
Hi all,
im testing solrcloud (version 4.3.1) with 2 shards and 1 external zookeeper.
All its runing ok, documents are indexing in 2 diferent shards and select
*:* give me all documents.
Now im trying to add/index a new document via solj ussing CloudSolrServer.
*the code:*
server = new CloudSolrServer("localhost:2181");
server.setDefaultCollection("tika");
server.setZkConnectTimeout(99999);
input = new FileInputStream(new File("C:\\sample.pdf"));
ContentStreamUpdateRequest up = new
ContentStreamUpdateRequest("/update/extract");
up.addFile(new File("C:\\caca.pdf"), "application/octet-stream");
up.setParam("literal.id", "444");
Parser parser = new PDFParser();
ContentHandler handler = new BodyContentHandler();
Metadata metadata = new Metadata();
ParseContext context = new ParseContext();
parser.parse(input, handler, metadata, context);
up.setParam("literal.text",handler.toString());
up.setMethod(SolrRequest.METHOD.POST);
server.request(up);
server.commit();
input.close();
} catch (MalformedURLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (SolrServerException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (Exception e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
*My schema looks like this:*
<fields>
<field name="id" type="integer" indexed="true" stored="true"
required="true"/>
<field name="title" type="string" indexed="true" stored="true"/>
<field name="author" type="string" indexed="true" stored="true" />
<field name="text" type="text_ind" indexed="true" stored="true" />
<field name="_version_" type="long" indexed="true" stored="true"/>
<dynamicField name="ignored_*" type="string" indexed="true"
stored="true"/>
</fields>
*where text_ind type is like this:*
<fieldType name="text_ind" class="solr.TextField"
positionIncrementGap="100">
<analyzer type="index">
<tokenizer class="solr.LetterTokenizerFactory"/>
<filter class="solr.EdgeNGramFilterFactory" minGramSize="3"
maxGramSize="25" />
<filter class="solr.LowerCaseFilterFactory"/>
</analyzer>
</fieldType>
*when i execute code next exception is thrown:*
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for
more info.
org.apache.solr.client.solrj.SolrServerException: No live SolrServers
available to handle this
request:[http://192.168.1.12:8983/solr/tika_shard1_replica1,
http://192.168.1.12:8984/solr/tika_shard2_replica1]
at
org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:333)
at
org.apache.solr.client.solrj.impl.CloudSolrServer.request(CloudSolrServer.java:306)
at solrCloud.solrJDemo.main(solrJDemo.java:51)
Caused by: org.apache.solr.client.solrj.SolrServerException: IOException
occured when talking to server at:
http://192.168.1.12:8983/solr/tika_shard1_replica1
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:413)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:180)
at
org.apache.solr.client.solrj.impl.LBHttpSolrServer.request(LBHttpSolrServer.java:264)
... 2 more
Caused by: org.apache.http.client.ClientProtocolException
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:909)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:805)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:784)
at
org.apache.solr.client.solrj.impl.HttpSolrServer.request(HttpSolrServer.java:352)
... 4 more
Caused by: org.apache.http.client.NonRepeatableRequestException: Cannot
retry request with a non-repeatable request entity. The cause lists the
reason the original request failed.
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:691)
at
org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:522)
at
org.apache.http.impl.client.AbstractHttpClient.execute(AbstractHttpClient.java:906)
... 7 more
Caused by: java.net.SocketException: Software caused connection abort:
socket write error
at java.net.SocketOutputStream.socketWrite0(Native Method)
at java.net.SocketOutputStream.socketWrite(Unknown Source)
at java.net.SocketOutputStream.write(Unknown Source)
at
org.apache.http.impl.io.AbstractSessionOutputBuffer.flushBuffer(AbstractSessionOutputBuffer.java:147)
at
org.apache.http.impl.io.AbstractSessionOutputBuffer.write(AbstractSessionOutputBuffer.java:167)
at
org.apache.http.impl.conn.LoggingSessionOutputBuffer.write(LoggingSessionOutputBuffer.java:74)
at
org.apache.http.impl.io.ChunkedOutputStream.flushCacheWithAppend(ChunkedOutputStream.java:110)
at
org.apache.http.impl.io.ChunkedOutputStream.write(ChunkedOutputStream.java:165)
at
org.apache.http.entity.InputStreamEntity.writeTo(InputStreamEntity.java:92)
at
org.apache.http.entity.HttpEntityWrapper.writeTo(HttpEntityWrapper.java:98)
at
org.apache.http.impl.client.EntityEnclosingRequestWrapper$EntityWrapper.writeTo(EntityEnclosingRequestWrapper.java:108)
at
org.apache.http.impl.entity.EntitySerializer.serialize(EntitySerializer.java:122)
at
org.apache.http.impl.AbstractHttpClientConnection.sendRequestEntity(AbstractHttpClientConnection.java:271)
at
org.apache.http.impl.conn.ManagedClientConnectionImpl.sendRequestEntity(ManagedClientConnectionImpl.java:197)
at
org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:257)
at
org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:125)
at
org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:717)
... 9 more
Them problem is the line:
up.setParam("literal.text",handler.toString());
if i comment this line or asign a short value to literal.text, the code
work's ok. the pdf is small, about 500KB.
Someone Know what im doing wrong?
I have read about the solrj default uses GET.... but i have set explicit to
post method:
up.setMethod(SolrRequest.METHOD.POST);
Thanks in advance.
--
View this message in context: http://lucene.472066.n3.nabble.com/socket-write-error-Solrj-4-3-1-tp4079869.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: socket write error Solrj 4.3.1
Posted by franagan <fr...@gmail.com>.
For people who have same issue, solved solved adding:
<str name="fmap.content">text</str>
in the requestHandler /update/extract" in solrconfig.xml:
<requestHandler name="/update/extract"
class="org.apache.solr.handler.extraction.ExtractingRequestHandler">
<lst name="defaults">
<str name="fmap.Last-Modified">last_modified</str>
<str name="uprefix">ignored_</str>
* <str name="fmap.content">text</str>*
</lst>
<lst name="date.formats">
<str>yyyy-MM-dd</str>
</lst>
</requestHandler>
So no need to add content in solrj:
p.setParam("literal.text",handler.toString());
Regards
--
View this message in context: http://lucene.472066.n3.nabble.com/socket-write-error-Solrj-4-3-1-tp4079869p4079881.html
Sent from the Solr - User mailing list archive at Nabble.com.
Re: Processing a lot of results in Solr
Posted by Timothy Potter <th...@gmail.com>.
Hi Matt,
This feature is commonly known as deep paging and Lucene and Solr have
issues with it ... take a look at
http://solr.pl/en/2011/07/18/deep-paging-problem/ as a potential
starting point using filters to bucketize a result set into sets of
sub result sets.
Cheers,
Tim
On Tue, Jul 23, 2013 at 3:04 PM, Matt Lieber <ml...@impetus.com> wrote:
> Hello Solr users,
>
> Question regarding processing a lot of docs returned from a query; I
> potentially have millions of documents returned back from a query. What is
> the common design to deal with this ?
>
> 2 ideas I have are:
> - create a client service that is multithreaded to handled this
> - Use the Solr "pagination" to retrieve a batch of rows at a time ("start,
> rows" in Solr Admin console )
>
> Any other ideas that I may be missing ?
>
> Thanks,
> Matt
>
>
> ________________________________
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
Re: Processing a lot of results in Solr
Posted by Otis Gospodnetic <ot...@gmail.com>.
Mikhail,
Yes, +1.
This question comes up a few times a year. Grant created a JIRA issue
for this many moons ago.
https://issues.apache.org/jira/browse/LUCENE-2127
https://issues.apache.org/jira/browse/SOLR-1726
Otis
--
Solr & ElasticSearch Support -- http://sematext.com/
Performance Monitoring -- http://sematext.com/spm
On Wed, Jul 24, 2013 at 9:58 PM, Mikhail Khludnev
<mk...@griddynamics.com> wrote:
> fwiw,
> i did some prototype with the following differences:
> - it streams straight to the socket output stream
> - it streams on-going during collecting, without necessity to store a
> bitset.
> It might have some limited extreme usage. Is there anyone interested?
>
>
> On Wed, Jul 24, 2013 at 7:19 PM, Roman Chyla <ro...@gmail.com> wrote:
>
>> On Tue, Jul 23, 2013 at 10:05 PM, Matt Lieber <ml...@impetus.com> wrote:
>>
>> > That sounds like a satisfactory solution for the time being -
>> > I am assuming you dump the data from Solr in a csv format?
>> >
>>
>> JSON
>>
>>
>> > How did you implement the streaming processor ? (what tool did you use
>> for
>> > this? Not familiar with that)
>> >
>>
>> this is what dumps the docs:
>>
>> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/response/JSONDumper.java
>>
>> it is called by one of our batch processors, which can pass it a bitset of
>> recs
>>
>> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchProviderDumpIndex.java
>>
>> as far as streaming is concerned, we were all very nicely surprised, a few
>> GB file (on local network) took ridiculously short time - in fact, a
>> colleague of mine was assuming it is not working, until we looked into the
>> downloaded file ;-), you may want to look at line 463
>>
>> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchHandler.java
>>
>> roman
>>
>>
>> > You say it takes a few minutes only to dump the data - how long does it
>> to
>> > stream it back in, are performances acceptable (~ within minutes) ?
>> >
>> > Thanks,
>> > Matt
>> >
>> > On 7/23/13 6:57 PM, "Roman Chyla" <ro...@gmail.com> wrote:
>> >
>> > >Hello Matt,
>> > >
>> > >You can consider writing a batch processing handler, which receives a
>> > >query
>> > >and instead of sending results back, it writes them into a file which is
>> > >then available for streaming (it has its own UUID). I am dumping many
>> GBs
>> > >of data from solr in few minutes - your query + streaming writer can go
>> > >very long way :)
>> > >
>> > >roman
>> > >
>> > >
>> > >On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com>
>> wrote:
>> > >
>> > >> Hello Solr users,
>> > >>
>> > >> Question regarding processing a lot of docs returned from a query; I
>> > >> potentially have millions of documents returned back from a query.
>> What
>> > >>is
>> > >> the common design to deal with this ?
>> > >>
>> > >> 2 ideas I have are:
>> > >> - create a client service that is multithreaded to handled this
>> > >> - Use the Solr "pagination" to retrieve a batch of rows at a time
>> > >>("start,
>> > >> rows" in Solr Admin console )
>> > >>
>> > >> Any other ideas that I may be missing ?
>> > >>
>> > >> Thanks,
>> > >> Matt
>> > >>
>> > >>
>> > >> ________________________________
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >>
>> > >> NOTE: This message may contain information that is confidential,
>> > >> proprietary, privileged or otherwise protected by law. The message is
>> > >> intended solely for the named addressee. If received in error, please
>> > >> destroy and notify the sender. Any use of this email is prohibited
>> when
>> > >> received in error. Impetus does not represent, warrant and/or
>> guarantee,
>> > >> that the integrity of this communication has been maintained nor that
>> > >>the
>> > >> communication is free of errors, virus, interception or interference.
>> > >>
>> >
>> >
>> > ________________________________
>> >
>> >
>> >
>> >
>> >
>> >
>> > NOTE: This message may contain information that is confidential,
>> > proprietary, privileged or otherwise protected by law. The message is
>> > intended solely for the named addressee. If received in error, please
>> > destroy and notify the sender. Any use of this email is prohibited when
>> > received in error. Impetus does not represent, warrant and/or guarantee,
>> > that the integrity of this communication has been maintained nor that the
>> > communication is free of errors, virus, interception or interference.
>> >
>>
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
> <mk...@griddynamics.com>
Re: Processing a lot of results in Solr
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
fwiw,
i did some prototype with the following differences:
- it streams straight to the socket output stream
- it streams on-going during collecting, without necessity to store a
bitset.
It might have some limited extreme usage. Is there anyone interested?
On Wed, Jul 24, 2013 at 7:19 PM, Roman Chyla <ro...@gmail.com> wrote:
> On Tue, Jul 23, 2013 at 10:05 PM, Matt Lieber <ml...@impetus.com> wrote:
>
> > That sounds like a satisfactory solution for the time being -
> > I am assuming you dump the data from Solr in a csv format?
> >
>
> JSON
>
>
> > How did you implement the streaming processor ? (what tool did you use
> for
> > this? Not familiar with that)
> >
>
> this is what dumps the docs:
>
> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/response/JSONDumper.java
>
> it is called by one of our batch processors, which can pass it a bitset of
> recs
>
> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchProviderDumpIndex.java
>
> as far as streaming is concerned, we were all very nicely surprised, a few
> GB file (on local network) took ridiculously short time - in fact, a
> colleague of mine was assuming it is not working, until we looked into the
> downloaded file ;-), you may want to look at line 463
>
> https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchHandler.java
>
> roman
>
>
> > You say it takes a few minutes only to dump the data - how long does it
> to
> > stream it back in, are performances acceptable (~ within minutes) ?
> >
> > Thanks,
> > Matt
> >
> > On 7/23/13 6:57 PM, "Roman Chyla" <ro...@gmail.com> wrote:
> >
> > >Hello Matt,
> > >
> > >You can consider writing a batch processing handler, which receives a
> > >query
> > >and instead of sending results back, it writes them into a file which is
> > >then available for streaming (it has its own UUID). I am dumping many
> GBs
> > >of data from solr in few minutes - your query + streaming writer can go
> > >very long way :)
> > >
> > >roman
> > >
> > >
> > >On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com>
> wrote:
> > >
> > >> Hello Solr users,
> > >>
> > >> Question regarding processing a lot of docs returned from a query; I
> > >> potentially have millions of documents returned back from a query.
> What
> > >>is
> > >> the common design to deal with this ?
> > >>
> > >> 2 ideas I have are:
> > >> - create a client service that is multithreaded to handled this
> > >> - Use the Solr "pagination" to retrieve a batch of rows at a time
> > >>("start,
> > >> rows" in Solr Admin console )
> > >>
> > >> Any other ideas that I may be missing ?
> > >>
> > >> Thanks,
> > >> Matt
> > >>
> > >>
> > >> ________________________________
> > >>
> > >>
> > >>
> > >>
> > >>
> > >>
> > >> NOTE: This message may contain information that is confidential,
> > >> proprietary, privileged or otherwise protected by law. The message is
> > >> intended solely for the named addressee. If received in error, please
> > >> destroy and notify the sender. Any use of this email is prohibited
> when
> > >> received in error. Impetus does not represent, warrant and/or
> guarantee,
> > >> that the integrity of this communication has been maintained nor that
> > >>the
> > >> communication is free of errors, virus, interception or interference.
> > >>
> >
> >
> > ________________________________
> >
> >
> >
> >
> >
> >
> > NOTE: This message may contain information that is confidential,
> > proprietary, privileged or otherwise protected by law. The message is
> > intended solely for the named addressee. If received in error, please
> > destroy and notify the sender. Any use of this email is prohibited when
> > received in error. Impetus does not represent, warrant and/or guarantee,
> > that the integrity of this communication has been maintained nor that the
> > communication is free of errors, virus, interception or interference.
> >
>
--
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>
Re: Processing a lot of results in Solr
Posted by Roman Chyla <ro...@gmail.com>.
On Tue, Jul 23, 2013 at 10:05 PM, Matt Lieber <ml...@impetus.com> wrote:
> That sounds like a satisfactory solution for the time being -
> I am assuming you dump the data from Solr in a csv format?
>
JSON
> How did you implement the streaming processor ? (what tool did you use for
> this? Not familiar with that)
>
this is what dumps the docs:
https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/response/JSONDumper.java
it is called by one of our batch processors, which can pass it a bitset of
recs
https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchProviderDumpIndex.java
as far as streaming is concerned, we were all very nicely surprised, a few
GB file (on local network) took ridiculously short time - in fact, a
colleague of mine was assuming it is not working, until we looked into the
downloaded file ;-), you may want to look at line 463
https://github.com/romanchyla/montysolr/blob/master/contrib/adsabs/src/java/org/apache/solr/handler/batch/BatchHandler.java
roman
> You say it takes a few minutes only to dump the data - how long does it to
> stream it back in, are performances acceptable (~ within minutes) ?
>
> Thanks,
> Matt
>
> On 7/23/13 6:57 PM, "Roman Chyla" <ro...@gmail.com> wrote:
>
> >Hello Matt,
> >
> >You can consider writing a batch processing handler, which receives a
> >query
> >and instead of sending results back, it writes them into a file which is
> >then available for streaming (it has its own UUID). I am dumping many GBs
> >of data from solr in few minutes - your query + streaming writer can go
> >very long way :)
> >
> >roman
> >
> >
> >On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com> wrote:
> >
> >> Hello Solr users,
> >>
> >> Question regarding processing a lot of docs returned from a query; I
> >> potentially have millions of documents returned back from a query. What
> >>is
> >> the common design to deal with this ?
> >>
> >> 2 ideas I have are:
> >> - create a client service that is multithreaded to handled this
> >> - Use the Solr "pagination" to retrieve a batch of rows at a time
> >>("start,
> >> rows" in Solr Admin console )
> >>
> >> Any other ideas that I may be missing ?
> >>
> >> Thanks,
> >> Matt
> >>
> >>
> >> ________________________________
> >>
> >>
> >>
> >>
> >>
> >>
> >> NOTE: This message may contain information that is confidential,
> >> proprietary, privileged or otherwise protected by law. The message is
> >> intended solely for the named addressee. If received in error, please
> >> destroy and notify the sender. Any use of this email is prohibited when
> >> received in error. Impetus does not represent, warrant and/or guarantee,
> >> that the integrity of this communication has been maintained nor that
> >>the
> >> communication is free of errors, virus, interception or interference.
> >>
>
>
> ________________________________
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>
Re: Processing a lot of results in Solr
Posted by Roman Chyla <ro...@gmail.com>.
Mikhail,
It is a slightly hacked JSONWriter - actually, while poking around, I have
discovered that dumping big hitsets would be possible - the main hurdle
right now, is that writer is expecting to receive docuemnts with fields
loaded, but if it received something that loads docs lazily, you could
stream thousands and thousands of recs just as it is done with the normal
response - standard operation. Well, people may cry this is not how SOLR is
meant to operate ;-)
roman
On Wed, Jul 24, 2013 at 5:28 AM, Mikhail Khludnev <
mkhludnev@griddynamics.com> wrote:
> Roman,
>
> Can you disclosure how that streaming writer works? What does it stream
> docList or docSet?
>
> Thanks
>
>
> On Wed, Jul 24, 2013 at 5:57 AM, Roman Chyla <ro...@gmail.com>
> wrote:
>
> > Hello Matt,
> >
> > You can consider writing a batch processing handler, which receives a
> query
> > and instead of sending results back, it writes them into a file which is
> > then available for streaming (it has its own UUID). I am dumping many GBs
> > of data from solr in few minutes - your query + streaming writer can go
> > very long way :)
> >
> > roman
> >
> >
> > On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com>
> wrote:
> >
> > > Hello Solr users,
> > >
> > > Question regarding processing a lot of docs returned from a query; I
> > > potentially have millions of documents returned back from a query. What
> > is
> > > the common design to deal with this ?
> > >
> > > 2 ideas I have are:
> > > - create a client service that is multithreaded to handled this
> > > - Use the Solr "pagination" to retrieve a batch of rows at a time
> > ("start,
> > > rows" in Solr Admin console )
> > >
> > > Any other ideas that I may be missing ?
> > >
> > > Thanks,
> > > Matt
> > >
> > >
> > > ________________________________
> > >
> > >
> > >
> > >
> > >
> > >
> > > NOTE: This message may contain information that is confidential,
> > > proprietary, privileged or otherwise protected by law. The message is
> > > intended solely for the named addressee. If received in error, please
> > > destroy and notify the sender. Any use of this email is prohibited when
> > > received in error. Impetus does not represent, warrant and/or
> guarantee,
> > > that the integrity of this communication has been maintained nor that
> the
> > > communication is free of errors, virus, interception or interference.
> > >
> >
>
>
>
> --
> Sincerely yours
> Mikhail Khludnev
> Principal Engineer,
> Grid Dynamics
>
> <http://www.griddynamics.com>
> <mk...@griddynamics.com>
>
Re: Processing a lot of results in Solr
Posted by Mikhail Khludnev <mk...@griddynamics.com>.
Roman,
Can you disclosure how that streaming writer works? What does it stream
docList or docSet?
Thanks
On Wed, Jul 24, 2013 at 5:57 AM, Roman Chyla <ro...@gmail.com> wrote:
> Hello Matt,
>
> You can consider writing a batch processing handler, which receives a query
> and instead of sending results back, it writes them into a file which is
> then available for streaming (it has its own UUID). I am dumping many GBs
> of data from solr in few minutes - your query + streaming writer can go
> very long way :)
>
> roman
>
>
> On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com> wrote:
>
> > Hello Solr users,
> >
> > Question regarding processing a lot of docs returned from a query; I
> > potentially have millions of documents returned back from a query. What
> is
> > the common design to deal with this ?
> >
> > 2 ideas I have are:
> > - create a client service that is multithreaded to handled this
> > - Use the Solr "pagination" to retrieve a batch of rows at a time
> ("start,
> > rows" in Solr Admin console )
> >
> > Any other ideas that I may be missing ?
> >
> > Thanks,
> > Matt
> >
> >
> > ________________________________
> >
> >
> >
> >
> >
> >
> > NOTE: This message may contain information that is confidential,
> > proprietary, privileged or otherwise protected by law. The message is
> > intended solely for the named addressee. If received in error, please
> > destroy and notify the sender. Any use of this email is prohibited when
> > received in error. Impetus does not represent, warrant and/or guarantee,
> > that the integrity of this communication has been maintained nor that the
> > communication is free of errors, virus, interception or interference.
> >
>
--
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics
<http://www.griddynamics.com>
<mk...@griddynamics.com>
Re: Processing a lot of results in Solr
Posted by Matt Lieber <ml...@impetus.com>.
That sounds like a satisfactory solution for the time being -
I am assuming you dump the data from Solr in a csv format?
How did you implement the streaming processor ? (what tool did you use for
this? Not familiar with that)
You say it takes a few minutes only to dump the data - how long does it to
stream it back in, are performances acceptable (~ within minutes) ?
Thanks,
Matt
On 7/23/13 6:57 PM, "Roman Chyla" <ro...@gmail.com> wrote:
>Hello Matt,
>
>You can consider writing a batch processing handler, which receives a
>query
>and instead of sending results back, it writes them into a file which is
>then available for streaming (it has its own UUID). I am dumping many GBs
>of data from solr in few minutes - your query + streaming writer can go
>very long way :)
>
>roman
>
>
>On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com> wrote:
>
>> Hello Solr users,
>>
>> Question regarding processing a lot of docs returned from a query; I
>> potentially have millions of documents returned back from a query. What
>>is
>> the common design to deal with this ?
>>
>> 2 ideas I have are:
>> - create a client service that is multithreaded to handled this
>> - Use the Solr "pagination" to retrieve a batch of rows at a time
>>("start,
>> rows" in Solr Admin console )
>>
>> Any other ideas that I may be missing ?
>>
>> Thanks,
>> Matt
>>
>>
>> ________________________________
>>
>>
>>
>>
>>
>>
>> NOTE: This message may contain information that is confidential,
>> proprietary, privileged or otherwise protected by law. The message is
>> intended solely for the named addressee. If received in error, please
>> destroy and notify the sender. Any use of this email is prohibited when
>> received in error. Impetus does not represent, warrant and/or guarantee,
>> that the integrity of this communication has been maintained nor that
>>the
>> communication is free of errors, virus, interception or interference.
>>
________________________________
NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.
Re: Processing a lot of results in Solr
Posted by Roman Chyla <ro...@gmail.com>.
Hello Matt,
You can consider writing a batch processing handler, which receives a query
and instead of sending results back, it writes them into a file which is
then available for streaming (it has its own UUID). I am dumping many GBs
of data from solr in few minutes - your query + streaming writer can go
very long way :)
roman
On Tue, Jul 23, 2013 at 5:04 PM, Matt Lieber <ml...@impetus.com> wrote:
> Hello Solr users,
>
> Question regarding processing a lot of docs returned from a query; I
> potentially have millions of documents returned back from a query. What is
> the common design to deal with this ?
>
> 2 ideas I have are:
> - create a client service that is multithreaded to handled this
> - Use the Solr "pagination" to retrieve a batch of rows at a time ("start,
> rows" in Solr Admin console )
>
> Any other ideas that I may be missing ?
>
> Thanks,
> Matt
>
>
> ________________________________
>
>
>
>
>
>
> NOTE: This message may contain information that is confidential,
> proprietary, privileged or otherwise protected by law. The message is
> intended solely for the named addressee. If received in error, please
> destroy and notify the sender. Any use of this email is prohibited when
> received in error. Impetus does not represent, warrant and/or guarantee,
> that the integrity of this communication has been maintained nor that the
> communication is free of errors, virus, interception or interference.
>
Re: Processing a lot of results in Solr
Posted by Chris Hostetter <ho...@fucit.org>.
: Subject: Processing a lot of results in Solr
: Message-ID: <D5...@mail1.impetus.co.in>
: In-Reply-To: <13...@n3.nabble.com>
https://people.apache.org/~hossman/#threadhijack
Thread Hijacking on Mailing Lists
When starting a new discussion on a mailing list, please do not reply to
an existing message, instead start a fresh email. Even if you change the
subject line of your email, other mail headers still track which thread
you replied to and your question is "hidden" in that thread and gets less
attention. It makes following discussions in the mailing list archives
particularly difficult.
-Hoss
Processing a lot of results in Solr
Posted by Matt Lieber <ml...@impetus.com>.
Hello Solr users,
Question regarding processing a lot of docs returned from a query; I
potentially have millions of documents returned back from a query. What is
the common design to deal with this ?
2 ideas I have are:
- create a client service that is multithreaded to handled this
- Use the Solr "pagination" to retrieve a batch of rows at a time ("start,
rows" in Solr Admin console )
Any other ideas that I may be missing ?
Thanks,
Matt
________________________________
NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.