lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lance Norskog <goks...@gmail.com>
Subject Re: Solr commit issue
Date Tue, 04 May 2010 01:50:33 GMT
This could be caused by HTTP caching. Solr's example solrconfig.xml
comes with HTTP caching turned on, and this causes lots of beginners
to have problems. The code to turn it off is commented in
solrconfig.xml. Notice that the default is to have caching on, so to
turn it off you have to have the XML that turns it off.


On Sat, May 1, 2010 at 8:01 PM, Indika Tantrigoda <indika85@gmail.com> wrote:
> Thanks for the reply.
> Here is another thread I found similar to this
> http://www.mail-archive.com/solr-user@lucene.apache.org/msg28236.html
>
> From what I understand the IndexReaders get reopened after a commit.
>
> Regards,
> Indika
>
> On 2 May 2010 00:29, Erick Erickson <erickerickson@gmail.com> wrote:
>
>> The underlying IndexReader must be reopened. If you're
>> searching for a document with a searcher that was opened
>> before the document was indexed, it won't show up on the
>> search results.
>>
>> I'm guessing that your statement that when you search
>> for it with some test is coincidence, but that's just a guess.
>>
>> HTH
>> Erick
>>
>> On Sat, May 1, 2010 at 1:07 PM, Indika Tantrigoda <indika85@gmail.com
>> >wrote:
>>
>> > Hi all,
>> >
>> > I've been working with Solr for a few weeks and have gotten SolrJ
>> > to connect to it, index, search documents.
>> >
>> > However I am having an issue when a document is committed.
>> > When a document is committed it does not show in the search results if I
>> do
>> > a *:* search,
>> > but if I search for it with some text then it is shown in the results.
>> > Only when another document is committed, the previous document is found
>> > when
>> > I do a *:* search
>> >
>> > Is this because of the SolrJ client or do I have to pass additional
>> > parameters to commit() ?
>> >
>> > Thanks in advance.
>> >
>> > Regards,
>> > Indika
>> >
>>
>



-- 
Lance Norskog
goksron@gmail.com

Mime
View raw message