Just thought I would share how I got verity K2 working with spectra
collections. It turned out to be a very effective and simple solution (cf 7
just works which is nice) but for CF 5 / 6 you have to do a bit of mucking
about.
1. Install the k2 server on the required machine. The following command
line needs to be executed in the cf_root\lib\ directory
k2server -ntservice 1 -inifile k2server.ini
(assuming cfmx is running under jrun the cf_root directory would be
C:\JRun4\servers\cfusion\cfusion-ear\cfusion-war\WEB-INF\cfusion)
2. Edit the k2server.ini file to reflect the verity collections that
will be used with the k2 engine. The vdkhome entry in the ini file also
needs the correct value for the server to start.
3. Set the k2 server defaults in the cold fusion administrator to the
newly installed k2 server. If the k2 server is running on the same
machine as the cfmx server the k2 server details will be 127.0.0.1
running on port 9901. If this is successful all the k2 referenced
collections should be visible in the cf administrator. If they are
visible but red it may be that the server is not running correctly or is
still starting.
The k2 server should now be installed and running with cold fusion set to
use the k2 collections (k2 collections will be seen in the verity section of
the cold fusion administrator). The cfsearch tag will automatically use the
k2 server if collections named in the k2server.ini file are passed as
parameters to it.
The spectra tag cfa_typesearch which in turn uses the cfsearch tag are used
to search using verity. The tags will ask verity to search the collection
created when indexing, the default search engine is the VDK.
All you have to do is edit the k2server.ini in the cf_root\lib\ directory
and add all the collections created by spectra (don't forget to restart the
K2 service and watch the memory dissapear). For each alias (collection name)
in the ini file I added _k2 so I could pass a switch into the cfa_typesearch
so I could turn k2 searching on or off. Add _k2 to the collection name makes
verity use the alias I created in the ini file and thus the k2 engine. No
_k2 and the VDK is used.
An entry for a collection in the ini file should look something like this:
[Coll-1]
collPath=c:\program
files\allaire\spectra\collections\06246AF4-DF4E-4747-84905AF8BDB8AE93_Date\c
ustom
collAlias=06246AF4-DF4E-4747-84905AF8BDB8AE93_Date_k2
topicSet=
knowledgeBase=
onLine=2
CF 7 doesn't use the VDK just K2 and it's a newer version with all sorts of
twiddly bits (no ini file either). The nice bit is it all 'just works'
Hope that points you in the right direction, the K2 stuff really does work
well and is very fast so I would recommend you try it. Let me know how you
get on.
Doug Cain
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 16 March 2005 16:23
To: Spectra-Talk
Subject: RE: Continuing on Spectra?
We use plain Verity and K2 extensively. Were you able to switch the
Spectra collections from vanilla Verity to K2? I have tried on one
occasion but was never really able to make it work.
You're right about Spectra not taking advantage of newer stuff in CFMX. I
always keep in mind that it was written for 4.5.1 and doesn't even have
things like QoQ. I've rewritten a bunch of my old code to reflect changes
to the app server, but haven't tackled the Spectra tags directly.
You probably saw Simon's response and my response to him. If we can get
enough people interested in stewarding a real open source version, managed
on Sourceforge (or similar) it would be nice. But if we can't then maybe a
smaller, less official community of practice might work out. I'd be
willing to host a shared Spectra blog where we could post articles & code.
Curious to hear how many people might be interested.
S
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Discover CFTicket - The leading ColdFusion Help Desk and Trouble
Ticket application
http://www.houseoffusion.com/banners/view.cfm?bannerid=48
Message: http://www.houseoffusion.com/lists.cfm/link=i:17:5650
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/17
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:17
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.17
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54