lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alessandro Benedetti <benedetti.ale...@gmail.com>
Subject Re: [Solr Event Listener plug-in] Execute query search from SolrCore - Java Code
Date Fri, 30 Dec 2011 23:52:34 GMT
I have tried to open a new searcher and make a forced commit inside the
postCommit method of the listener, but it caused many issues.
How can I complete the commit and then call the postCommit method of the
listener with the logic inside ( with a lot of queries on the last
committed docs)?

Cheers

2011/12/31 Alessandro Benedetti <benedetti.alex85@gmail.com>

> Ok, I have made progresses, I built my architecture and I execute queries
> , inside the "PostCommit" method, and they are launched as i want.
> But The core can't see the early updated documents and the commit ends
> after than the "postCommit" method has ended!!
> But i have to see the early updated document, this is the principal need
> of my plugin.
> How can i search the early indexed documents? How can i open the new
> searcher? and where?
> Inside the postCommit seems to be not good...
> Any suggestion?
>
>
> 2011/12/29 Alessandro Benedetti <benedetti.alex85@gmail.com>
>
>> Hi guys,
>> I'm developing a custom SolrEventListener, and inside the PostCommit()
>> method I need to execute some queries and collect results.
>> In my SolrEventListener class, I have a SolrCore
>> Object( org.apache.solr.core.SolrCore) and a list of queries (Strings ).
>>
>> How can I use the SolrCore to optimally parse the queries ( I have to
>> parse them like Solr Query parser does and launch them?
>>
>> I'm fighting with Searchers and Execute methods in the solrCore object,
>> but I don't know which is the best way to do this ...
>>
>> Cheers
>>
>>
>> --
>> --------------------------
>>
>> Benedetti Alessandro
>> Personal Page: http://tigerbolt.altervista.org
>>
>> "Tyger, tyger burning bright
>> In the forests of the night,
>> What immortal hand or eye
>> Could frame thy fearful symmetry?"
>>
>> William Blake - Songs of Experience -1794 England
>>
>
>
>
> --
> --------------------------
>
> Benedetti Alessandro
> Personal Page: http://tigerbolt.altervista.org
>
> "Tyger, tyger burning bright
> In the forests of the night,
> What immortal hand or eye
> Could frame thy fearful symmetry?"
>
> William Blake - Songs of Experience -1794 England
>



-- 
--------------------------

Benedetti Alessandro
Personal Page: http://tigerbolt.altervista.org

"Tyger, tyger burning bright
In the forests of the night,
What immortal hand or eye
Could frame thy fearful symmetry?"

William Blake - Songs of Experience -1794 England

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