lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ahmed Adel <ahmed.a...@badrit.com>
Subject Re: Export feature issue in Solr 4.10
Date Sat, 04 Oct 2014 19:18:31 GMT
Thanks Joel, I changed enableLazyFieldLoading to false and it worked just
fine.

However, for some reason, I was expecting it to return
"content-disposition: attachment" in the response. Maybe because response
of this request would most probably be huge and if returned to the browser,
it makes sense to be downloaded as browser won't be able to handle it
efficiently, at least by supplying a request parameter. What do you think?

A. Adel
On Oct 2, 2014 11:06 PM, "Joel Bernstein" <joelsolr@gmail.com> wrote:

> There is bug in how the export handler is working when you have very few
> documents in the index and the solrconfig.xml is configured to enable lazy
> document loading:
>
> <enableLazyFieldLoading>true</enableLazyFieldLoading>
>
> The tests didn't catch this because lazy loading was set to the default
> which is false in the tests. The manual testing I did, didn't catch this
> because I tested with a large number of documents in the index.
>
> Your example will work if you change:
>
> <enableLazyFieldLoading>false</enableLazyFieldLoading>
>
> And if you load a typical index with lots of documents you should have no
> problems running with lazy loading enabled.
>
> I'll create jira to fix this issue.
>
>
>
>
>
>
>
>
> Joel Bernstein
> Search Engineer at Heliosearch
>
> On Thu, Oct 2, 2014 at 4:10 PM, Joel Bernstein <joelsolr@gmail.com> wrote:
>
> > Yep getting the same error. Investigating...
> >
> > Joel Bernstein
> > Search Engineer at Heliosearch
> >
> > On Thu, Oct 2, 2014 at 12:59 PM, Ahmed Adel <ahmed.adel@badrit.com>
> wrote:
> >
> >> Hi All,
> >>
> >> I'm trying to use Solr 4.10 export feature, but I'm getting an error.
> >> Maybe
> >> I missed something.
> >>
> >> Here's the scenario:
> >>
> >>
> >>    1. Download Solr 4.10.0
> >>    2. Use collection1 schema out of the box
> >>    3. Add docValues="true" to price and pages fields in schema.xml
> >>    4. Index books.json using command line:
> >>    curl http://localhost:8984/solr/collection1/update -H
> >> "Content-Type: text/json" --data-binary
> >> @example/exampledocs/books.json
> >>    5. Try running this query:
> >>
> >>
> http://localhost:8984/solr/collection1/export?q=*:*&sort=price%20asc&fl=price
> >>    6. Here's the error I get:
> >>
> >>    java.lang.IllegalArgumentException: docID must be >= 0 and <
> >> maxDoc=4 (got docID=4)
> >>         at
> >>
> org.apache.lucene.index.BaseCompositeReader.readerIndex(BaseCompositeReader.java:182)
> >>         at
> >>
> org.apache.lucene.index.BaseCompositeReader.document(BaseCompositeReader.java:109)
> >>         at
> >> org.apache.solr.search.SolrIndexSearcher.doc(SolrIndexSearcher.java:700)
> >>         at
> >>
> org.apache.solr.util.SolrPluginUtils.optimizePreFetchDocs(SolrPluginUtils.java:213)
> >>         at
> >>
> org.apache.solr.handler.component.QueryComponent.doPrefetch(QueryComponent.java:623)
> >>         at
> >>
> org.apache.solr.handler.component.QueryComponent.process(QueryComponent.java:507)
> >>         at
> >>
> org.apache.solr.handler.component.SearchHandler.handleRequestBody(SearchHandler.java:218)
> >>         at
> >>
> org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
> >>         at org.apache.solr.core.SolrCore.execute(SolrCore.java:1967)
> >>         ...
> >>
> >>
> >> Any ideas what could be missing?
> >>
> >> Thanks,
> >> A. Adel
> >>
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message