A robust starter web application to ease Java webapp development.

Home | Tutorials | Demos | Issues

Appfuse searching with Compass 2.0 (Lucene)

View: New views
5 Messages — Rating Filter:   Alert me  

Appfuse searching with Compass 2.0 (Lucene)

by Chris Barham :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,
I've extended the previous DisplayTag external sorting and paging project to implement full search capability across the domain objects by using Compass 2.0 - http://www.compass-project.org/ 

Although there are a number of tutorials around for Compass and Appfuse, but I thought I'd update as Compass has just gone to version 2.0 and has new features, (annotations etc).

Search results in the example are displayed in plain HTML with Compass' own paging feature, and also using DisplayTag with it's paging external feature, (both on the same search results page in the example)

Code is in a branch off the original project called branches/search - check it out with:

svn checkout http://pagingappfuse.googlecode.com/svn/branches/search/ appfusecompass

Instructions on how to implement Compass are here:

Cheers,
Chris


smime.p7s (2K) Download Attachment

Re: Appfuse searching with Compass 2.0 (Lucene)

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Sweet - thanks Chris!

I've added your tutorials to AppFuse News and blogged about them on
raibledesigns.com.

http://appfuse.org/display/APF/News

Cheers,

Matt

On Wed, May 21, 2008 at 7:35 AM, Chris Barham <cbarham@...> wrote:

> Hi,
> I've extended the previous DisplayTag external sorting and paging project to
> implement full search capability across the domain objects by using Compass
> 2.0 - http://www.compass-project.org/
> Although there are a number of tutorials around for Compass and Appfuse, but
> I thought I'd update as Compass has just gone to version 2.0 and has new
> features, (annotations etc).
> Search results in the example are displayed in plain HTML with Compass' own
> paging feature, and also using DisplayTag with it's paging external feature,
> (both on the same search results page in the example)
> Code is in a branch off the original project called branches/search - check
> it out with:
> svn checkout http://pagingappfuse.googlecode.com/svn/branches/search/
> appfusecompass
> Instructions on how to implement Compass are here:
> http://code.google.com/p/pagingappfuse/wiki/CompassSearching
> Cheers,
> Chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...


Re: Appfuse searching with Compass 2.0 (Lucene)

by kace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I get the following error when running mvn jetty:run after making the changes to my appfuse jsf 2.0.2 app

I followed the instructions at http://code.google.com/p/pagingappfuse/wiki/CompassSearching and
http://www.nabble.com/RE%3A-search---integrate-compass-%28lucene%29-and-appfuse-p5222253s2369.html

2008-05-23 14:45:20.064:/:INFO:  Initializing Spring root WebApplicationContext
ERROR [main] ContextLoader.initWebApplicationContext(215) | Context initializati
on failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find clas
s [org.compass.spring.LocalCompassBean] for bean with name 'compass' defined in
class path resource [applicationContext-resources.xml]; nested exception is java
.lang.ClassNotFoundException: org.compass.spring.LocalCompassBean

any ideas?

..kace


Re: Appfuse searching with Compass 2.0 (Lucene)

by kace :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I see there is a spring-2.0.6 jar in the war - how can I figure out where this dependency is coming from so I can exclude it?

..kace

Re: Appfuse searching with Compass 2.0 (Lucene)

by mraible :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

mvn dependency:tree

If that doesn't give you enough detailed information, run "mvn -X
package > mvn.log" and then search through mvn.log for 2.0.6.

Matt

On Fri, May 23, 2008 at 8:16 AM, kace <me_myself_and_aye@...> wrote:

>
> I see there is a spring-2.0.6 jar in the war - how can I figure out where
> this dependency is coming from so I can exclude it?
>
> ..kace
> --
> View this message in context: http://www.nabble.com/Appfuse-searching-with-Compass-2.0-%28Lucene%29-tp17368089s2369p17426599.html
> Sent from the AppFuse - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@...
> For additional commands, e-mail: users-help@...
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@...
For additional commands, e-mail: users-help@...