Soft commit uploading datas cant search on website

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Soft commit uploading datas cant search on website

Abdul Ekfhy
I configure the softcommit in solrconfig.xml, and when i add a new entry(example : solrtest) from website and run below commit url
"http://192.168.2.10:8983/solr/goods/update?softCommit=true&commit=true "

when i run this and check on the query  keyword:solrtest its shows the entry on xml format

and also its increase +1  in numdocs for goods.

but it not shows on website search.

when i do the hardcommit manually . then its shows the result on website.

any idea what could be the issue.

my configurations are below

solrconfig.xml

      <autoCommit>
        <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
        <openSearcher>false</openSearcher>
      </autoCommit>


      <autoSoftCommit>
       <maxTime>10000</maxTime>
      </autoSoftCommit>


solr.log
..................................
..................................
search on query(its shows hits=1)
.....................
2017-08-11 09:15:28.060 INFO  (qtp985934102-14) [c:goods s:shard1 r:core_node3 x:goods_v6.6] o.a.s.c.S.Request [goods_v6.6]  webapp=/solr path=/select params={q=keyword:solrtest&indent=on&wt=json&_=1502439335248} hits=1 status=0 QTime=1
.............................................................................................................................................
search on website(its shows hits=0)
..................
2017-08-11 09:14:37.226 INFO  (qtp985934102-47) [c:goods s:shard1 r:core_node3 x:goods_v6.6] o.a.s.c.S.Request [goods_v6.6]  webapp=/solr path=/select params={q=keyword:"*solrtest*"&start=0&fq=storePrice:[0+TO+999999999]&fq=goodsStatus:0&sort=goodsClick+desc&rows=12&wt=javabin&version=2} hits=0 status=0 QTime=2


any configurations i need to  add more to solrconfig.xml ??
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Soft commit uploading datas cant search on website

Erick Erickson
First, if you specify commit it's doing a hard commit with
openSearcher=true by default so the softCommit isn't necessary here.
I'd do one or the other, as it's possible that Solr is stopping at the
first one.

bq: when i do the hardcommit manually . then its shows the result on website.

I don't know what that means in this context.

The most obvious difference is that you have "fq" clauses in the one
that doesn't work, what happens when you remove them?

Best,
Erick

On Fri, Aug 11, 2017 at 3:00 AM, Abdul Ekfhy <[hidden email]> wrote:

> I configure the softcommit in solrconfig.xml, and when i add a new
> entry(example : solrtest) from website and run below commit url
> "http://192.168.2.10:8983/solr/goods/update?softCommit=true&commit=true "
>
> when i run this and check on the query  keyword:solrtest its shows the entry
> on xml format
>
> and also its increase +1  in numdocs for goods.
>
> but it not shows on website search.
>
> when i do the hardcommit manually . then its shows the result on website.
>
> any idea what could be the issue.
>
> my configurations are below
>
> solrconfig.xml
>
>       <autoCommit>
>         <maxTime>${solr.autoCommit.maxTime:15000}</maxTime>
>         <openSearcher>false</openSearcher>
>       </autoCommit>
>
>
>       <autoSoftCommit>
>        <maxTime>10000</maxTime>
>       </autoSoftCommit>
>
>
> solr.log
> ..................................
> ..................................
> search on query(its shows hits=1)
> .....................
> 2017-08-11 09:15:28.060 INFO  (qtp985934102-14) [c:goods s:shard1
> r:core_node3 x:goods_v6.6] o.a.s.c.S.Request [goods_v6.6]  webapp=/solr
> path=/select params={q=keyword:solrtest&indent=on&wt=json&_=1502439335248}
> hits=1 status=0 QTime=1
> .............................................................................................................................................
> search on website(its shows hits=0)
> ..................
> 2017-08-11 09:14:37.226 INFO  (qtp985934102-47) [c:goods s:shard1
> r:core_node3 x:goods_v6.6] o.a.s.c.S.Request [goods_v6.6]  webapp=/solr
> path=/select
> params={q=keyword:"*solrtest*"&start=0&fq=storePrice:[0+TO+999999999]&fq=goodsStatus:0&sort=goodsClick+desc&rows=12&wt=javabin&version=2}
> hits=0 status=0 QTime=2
>
>
> any configurations i need to  add more to solrconfig.xml ??
>
>
>
>
> --
> View this message in context: http://lucene.472066.n3.nabble.com/Soft-commit-uploading-datas-cant-search-on-website-tp4350186.html
> Sent from the Solr - User mailing list archive at Nabble.com.
Loading...