Appfuse searching with Compass 2.0 (Lucene)

5 messages Options
Embed this post
Permalink
Chris Barham

Appfuse searching with Compass 2.0 (Lucene)

Reply Threaded More More options
Print post
Permalink
Some javascript/style in this post has been disabled (why?)
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
mraible

Re: Appfuse searching with Compass 2.0 (Lucene)

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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: [hidden email]
For additional commands, e-mail: [hidden email]

kace-2

Re: Appfuse searching with Compass 2.0 (Lucene)

Reply Threaded More More options
Print post
Permalink
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

kace-2

Re: Appfuse searching with Compass 2.0 (Lucene)

Reply Threaded More More options
Print post
Permalink
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
mraible

Re: Appfuse searching with Compass 2.0 (Lucene)

Reply Threaded More More options
Print post
Permalink
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 <[hidden email]> 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: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]