Forum OpenACS Q&A: tsearch2

Collapse
Posted by Roger Lockerbie on
I gather that tsearch2 is now the module of choice for full text search in 5.2 and has superceeded openFTS.

Having delivered 5.2 I find the docs telling me to deliver openFTS for search.

I can swear I found new docs mentioning tsearch2 but I can not find them anymore

Can anyone point me in the direction of docs for

* setting up tsearch2
* is it supported by search/OACS kernel
* are there any examples of implementing a service-contract for a package (i.e tsearch2 enabling the notes package)

If it helps the custom package that we are developing uses the content repository

Thanks in advance for any help.

Collapse
2: Re: tsearch2 (response to 1)
Posted by Dave Bauer on
File-storage, forums, survey, news, edit-this-page, all have search service contracts. Probably other packages I haven't thought of off the top of my head.

Here is the tsearch2 install doc

http://cvs.openacs.org/cvs/*checkout*/openacs-4/packages/acs-core-docs/www/install-full-text-search-tsearch2.html?rev=1.2.2.5

I am surpised you can't find this in your install. This was tagged to be included in openacs-5-2-final.

Collapse
3: Re: tsearch2 (response to 1)
Posted by Roger Lockerbie on
Thanks for the URL

The standard link in Administrators guide/Setting up the software/ Full text search -> OpenFTS (On my fresh 5.2 install).

Regarding referring to something like forums, Having a look at available packages with APM shows that forums are not even available under 5.2

Do I just connect to 5.1.5 repository and grab that, or is there a 5.2 version under CVS

Sorry for the newb questions but this is the first site upgrade since ACS v4 (yes ACS not OACS), so I am somewhat out of touch

Roger.

Collapse
4: Re: Re: tsearch2 (response to 3)
Posted by Joe Cooper on
For what it's worth, the 5.1.5 repository Forums package does seem to work flawlessly in 5.2.0 (though certainly not all 5.1.5 packages do!), including search. I've spent a half an hour or so poking at it and I couldn't make it fall down or give me any trouble. If it were the only package I was using, I would have upgraded to 5.2.0 already.

I think search was easier to install in 5.2.0 than 5.1.5 (but I don't understand what's happening at any point in the process, so I'm just guessing based on what I saw when I was upgrading!), though I'm sure the PostgreSQL functions still have to be installed manually per the documentation. Probably.

Collapse
5: Re: tsearch2 (response to 1)
Posted by Dave Bauer on
Sorry the 5.2 release has revealed some shortcomings in the release process in relation to the repository in particular.

1) You can't upgrade to a beta from the repository, so testing repository upgrade to beta is impossible.

2) Optional packages aren't tagged/tested with release. At a minimum I think we need to tag the last packages as compatible if they are, or try to coordinate updates of most common packages.

The main issue is that the 5.2 upgrade for openacs.org has been delayed due to an error in the upgrade. Once the upgrade is complete I can tag the packages from 5.2 like forums, file-storage, bug-tracker that are working on the 5.2 openacs.org site.

Collapse
6: Re: tsearch2 (response to 1)
Posted by Dave Bauer on