Lucene is broken

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Lucene is broken

Erwan de FERRIERES-3
Hi all,

When going to https://localhost:8443/content/control/AdminSearch, I
can't get any result. When loading the page, here is the first error
message :
  in search, error:no segments* file found in
org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index:
files:
--> Lucene is now using Directory

Then when adding a parameter and running the search :
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://content/widget/cms/CMSScreens.xml#AdminSearch]:
groovy.lang.MissingMethodException: No signature of method:
org.apache.lucene.search.BooleanQuery.add() is applicable for argument
types: (org.apache.lucene.search.TermQuery, java.lang.Boolean,
java.lang.Boolean) values: [feature:EC_FORKLIFT, true, false]
Possible solutions: any(), add(org.apache.lucene.search.BooleanClause),
add(org.apache.lucene.search.Query,
org.apache.lucene.search.BooleanClause$Occur), wait(), dump(),
any(groovy.lang.Closure) (No signature of method:
org.apache.lucene.search.BooleanQuery.add() is applicable for argument
types: (org.apache.lucene.search.TermQuery, java.lang.Boolean,
java.lang.Boolean) values: [feature:EC_FORKLIFT, true, false]
Possible solutions: any(), add(org.apache.lucene.search.BooleanClause),
add(org.apache.lucene.search.Query,
org.apache.lucene.search.BooleanClause$Occur), wait(), dump(),
any(groovy.lang.Closure))

My guess is that queries construction is not compatible with the lucene
version we are using, and thus cannot be upgraded too.

My week-end goal was to migrate lucene version to 3.0.1, but as it is
not working, I couldn't do it.

Then, for the https://localhost:8443/content/control/AdminIndex, I can't
say if it's working or not, so I didn't go more deeper into the problem.

If someone could take a look, this would be very great !

Cheers,

--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Lucene is broken

Scott Gray-2
Hi Erwan,

It's funny you should bring this up, I have a local git branch where I've been working on the upgrade off and on as well.  I don't have time right now, but have been looking at the API a fair bit and should probably be able to get it done within the next week or two.

What did you have planned for Lucene out of curiosity?

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 3/05/2010, at 7:46 AM, Erwan de FERRIERES wrote:

> Hi all,
>
> When going to https://localhost:8443/content/control/AdminSearch, I can't get any result. When loading the page, here is the first error message :
> in search, error:no segments* file found in org.apache.lucene.store.FSDirectory@/home/erwan/workspace/Apache_OFBiz/ofbiz/applications/content/index: files:
> --> Lucene is now using Directory
>
> Then when adding a parameter and running the search :
> org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen [component://content/widget/cms/CMSScreens.xml#AdminSearch]: groovy.lang.MissingMethodException: No signature of method: org.apache.lucene.search.BooleanQuery.add() is applicable for argument types: (org.apache.lucene.search.TermQuery, java.lang.Boolean, java.lang.Boolean) values: [feature:EC_FORKLIFT, true, false]
> Possible solutions: any(), add(org.apache.lucene.search.BooleanClause), add(org.apache.lucene.search.Query, org.apache.lucene.search.BooleanClause$Occur), wait(), dump(), any(groovy.lang.Closure) (No signature of method: org.apache.lucene.search.BooleanQuery.add() is applicable for argument types: (org.apache.lucene.search.TermQuery, java.lang.Boolean, java.lang.Boolean) values: [feature:EC_FORKLIFT, true, false]
> Possible solutions: any(), add(org.apache.lucene.search.BooleanClause), add(org.apache.lucene.search.Query, org.apache.lucene.search.BooleanClause$Occur), wait(), dump(), any(groovy.lang.Closure))
>
> My guess is that queries construction is not compatible with the lucene version we are using, and thus cannot be upgraded too.
>
> My week-end goal was to migrate lucene version to 3.0.1, but as it is not working, I couldn't do it.
>
> Then, for the https://localhost:8443/content/control/AdminIndex, I can't say if it's working or not, so I didn't go more deeper into the problem.
>
> If someone could take a look, this would be very great !
>
> Cheers,
>
> --
> Erwan de FERRIERES
> www.nereide.biz


smime.p7s (3K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Lucene is broken

Erwan de FERRIERES
Le 03/05/2010 14:05, Scott Gray a écrit :
> Hi Erwan,
>
> It's funny you should bring this up, I have a local git branch where I've been working on the upgrade off and on as well.  I don't have time right now, but have been looking at the API a fair bit and should probably be able to get it done within the next week or two.
>
> What did you have planned for Lucene out of curiosity?
>
So far so good !

Nothing planned, if you want to know... Just saw that the lib was a bit
old, so I told myself it should be time to update !

Cheers,

> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
--
Erwan de FERRIERES
www.nereide.biz
Reply | Threaded
Open this post in threaded view
|

Re: Lucene is broken

Scott Gray-2
On 4/05/2010, at 12:45 AM, Erwan de FERRIERES wrote:

> Le 03/05/2010 14:05, Scott Gray a écrit :
>> Hi Erwan,
>>
>> It's funny you should bring this up, I have a local git branch where I've been working on the upgrade off and on as well.  I don't have time right now, but have been looking at the API a fair bit and should probably be able to get it done within the next week or two.
>>
>> What did you have planned for Lucene out of curiosity?
>>
> So far so good !
>
> Nothing planned, if you want to know... Just saw that the lib was a bit old, so I told myself it should be time to update !
Fair enough :-)

I've been wanting to do a proof of concept for a tight integration with the entity-engine where you define something similar to a view entity with additional indexing information and then have it automatically hook up ECAs to the member entities for indexing.
The ideas was that you could do a party search using a google-like syntax:
name:scott city:auckland

Regards
Scott

smime.p7s (3K) Download Attachment