lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Liu Bo <>
Subject Re: Documents cannot be searched immediately when indexed using REST API with Solr Cloud
Date Thu, 19 Mar 2015 10:54:01 GMT
Hi Edvin

Please review your commit/soft-commit configuration,
"soft commits are about visibility, hard commits are about durability"
 ---- by a wise man. :)

If you are doing NRT index and searching, your probably need a short soft
commit interval or commit explicitly in your request handler. Be advised
that these strategies and configurations need to be tested and adjusted
according to your data size, searching and index updating frequency.

You should be able to find the answer yourself here:

All the best

Liu Bo

On 19 March 2015 at 17:54, Zheng Lin Edwin Yeo <> wrote:

> Hi,
> I'm using Solr Cloud now, with 2 shards known as shard1 and shard2, and
> when I try to index rich-text documents using REST API or the default
> Documents module in Solr Admin UI, the documents that are indexed do not
> appear immediately when I do a search. It only appears after I restarted
> the Solr services (both shard1 and shard2).
> However, the same issue do not happen when I index the same documents using
> post.jar, and I can search for the indexed documents immediately.
> Here's my ExtractingRequestHandler in solrconfig.xml.
>   <requestHandler name="/update/extract"
>                   class="solr.extraction.ExtractingRequestHandler" >
>     <lst name="defaults">
>       <str name="lowernames">true</str>
>       <str name="uprefix">ignored_</str>
>       <!-- capture link hrefs but ignore div attributes -->
>       <str name="captureAttr">true</str>
>       <str name="fmap.a">links</str>
>       <str name="fmap.div">ignored_</str>
>     </lst>
>   </requestHandler>
> What could be the reason why this is happening, and any solutions to solve
> it?
> Regards,
> Edwin

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