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 THADC <ti...@gmail.com> on 2018/06/15 16:56:50 UTC

Limited Search Results During Full Reindexing - Fine Once Completed

Hello,

We are migrating from solr 4.7 to 7.3. It takes about an hour to perform a
complete re-index against our development database. During this upgrade (to
7.3) testing, I typically wait for the re-index to complete before doing
sample queries from our application. However, I got a bit impatient this
afternoon and started querying as the index was being rebuilt, and I
surprised to notice that few or no records were returned during the
re-index, but once completed, it worked fine. 

Any ideas why this might be happening?

thanks!



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Limited Search Results During Full Reindexing - Fine Once Completed

Posted by Erick Erickson <er...@gmail.com>.
I'd set your soft commit interval to as long as you can stand. Every
soft commit opens a new searcher and does significant work, including
throwing away your queryResultCache and filterCache.

The time here should be as long as you can afford to not be able to
search updates. Don't go totally overboard here, 5-10 minutes is
pretty reasonable as a maximum. 3 seconds means your caches will only
be valid for a short period and then will be rebuild as per your
autowarm settings.

Don't go overboard with your autowarm settings, I usually start with < 20.

Best,
Erick

On Tue, Jun 19, 2018 at 9:22 AM, THADC
<ti...@gmail.com> wrote:
> thanks I changed the autosoftCommit from -1 and 3000 and that seemed to do
> the trick.
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Limited Search Results During Full Reindexing - Fine Once Completed

Posted by THADC <ti...@gmail.com>.
thanks I changed the autosoftCommit from -1 and 3000 and that seemed to do
the trick.



--
Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

Re: Limited Search Results During Full Reindexing - Fine Once Completed

Posted by Erick Erickson <er...@gmail.com>.
Most likely you don't have your autocommit settings set up correctly
and, at a guess, your indexing process fires a commit at the end.

If I'm right, autoCommit has "openSearcher" set to "false" and
autoSoftCommit is either commented out or set to -1.

More than you might want to know:

https://lucidworks.com/2013/08/23/understanding-transaction-logs-softcommit-and-commit-in-sorlcloud/

And the defaults in solrconfig.xm have changed I believe, so even
though 4x has the same capabilities it may just be configured
difrerently.

Best,
Erick

On Fri, Jun 15, 2018 at 9:56 AM, THADC
<ti...@gmail.com> wrote:
> Hello,
>
> We are migrating from solr 4.7 to 7.3. It takes about an hour to perform a
> complete re-index against our development database. During this upgrade (to
> 7.3) testing, I typically wait for the re-index to complete before doing
> sample queries from our application. However, I got a bit impatient this
> afternoon and started querying as the index was being rebuilt, and I
> surprised to notice that few or no records were returned during the
> re-index, but once completed, it worked fine.
>
> Any ideas why this might be happening?
>
> thanks!
>
>
>
> --
> Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html