Steven Erat's Blog Steven Erat Photography
 
 
Viewing By Entry
 
 

TalkingTree  Usage of Verity's rcvdk commandline search utility

 

One of the lesser know Verity utilities that ships with ColdFusion MX 7, as well as CFMX 6 and CF 5, is the search tool rcvdk. Unlike other utilities such as mkvdk and vspider, rcvdk must be run interactively so you can't script it. Its useful for times when you want to test searching a Verity collection by doing simple and advanced searches, and can be useful to see if the results match the equivalent search pattern in your code with CFSEARCH.

For additional detail, check out the ColdFusion MX 7 Documentation for rcvdk, and didump too.

Usage is a little tricky, and I'll walk you through how to use it from the commandline. In this case, I'm using Linux, but it behaves (almost) the same on Windows.

First note that the default locale is Englishx, for English Advanced, so when creating collections on the commandline with mkvdk or vspider, if you don't specify a locate then the collection is created as Englishx. When creating a collection from the ColdFusion Administrator, the default option is English Basic, which is the equivalent of just English. On the commandline, these options ar specified as either (lowercase) englishx or english.

Here's the contents of a test server having 3 collections already.

  • bookclub - a sample collection shipped with cfdocs
  • macr_verity_test2 - a collection created from the CF Administrator (english)
  • vspidertest3 - a collection created with vspider (englishx)

[root@ps-port bin]# ls -l /opt/coldfusionmx7/verity/collections/
total 12
drwxr-xr-x 12 nobody nobody 4096 Feb 4 16:46 bookclub
-rwxrwxr-x 1 nobody root 0 Jun 5 2003 empty.txt
drwxr-xr-x 11 nobody nobody 4096 Mar 28 19:54 macr_verity_test2
drwxr-xr-x 12 root root 4096 Mar 28 20:05 vspidertest3

Now on Unix and Linux, set LD_LIBRARY_PATH first. Note I just append '.' to the end of the existing LD_LIBRARY_PATH since I'm working from the directory containing rcvdk.

[root@ps-port bin]# pwd
/opt/coldfusionmx7/verity/k2/_ilnx21/bin

[root@ps-port bin]# ls -l rcvdk
-rwxrwxr-x 1 nobody root 62929 May 24 2004 rcvdk

[root@ps-port bin]# LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
[root@ps-port bin]# export LD_LIBRARY_PATH

Run rcvdk, in this case without specifying a locale, so the default englishx is used when searching.

[root@ps-port bin]# ./rcvdk
rcvdk Verity, Inc. Version 5.5.0
Attached collections [0]:
Type 'help' for a list of commands.

Examine the utility's options

RC> help
Available commands:
search s Search documents.
results r Display search results.
clusters c Display clustered search results.
view v View document.
summarize z Summarize documents.
attach a Attach to one or more collections.
detach d Detach from one or more collections.
quit q Leave application.
about Display VDK 'About' info.
help ? Display help text; 'help help' for details.
expert x Toggle expert mode on/off.
user u Set user. username[:password][:domain][:mailbox]

Examine the utility's expert options

RC> expert
Expert mode enabled
RC> help
Available commands:
search s Search documents.
results r Display search results.
clusters c Display clustered search results.
view v View document.
summarize z Summarize documents.
attach a Attach to one or more collections.
detach d Detach from one or more collections.
quit q Leave application.
about Display VDK 'About' info.
help ? Display help text; 'help help' for details.
expert x Toggle expert mode on/off.
source Set default source.
sort Set default sort.
disable Disable/enable collections.
debug Toggle internal debug flag.
fields Set fields to display.
highlight Set highlight display.
hlmode Toggle index-based/stream-based highlighting.
markup Toggle markup display on/off.
qparser Select/List QParsers.
history Show query history.
precision Set score precision.
user u Set user. username[:password][:domain][:mailbox]
time t Toggle display of search execution time.
checkid Check document access with a list of VdkDocIDs.
checkkey Check document access with single or a list of VdkDocKeys.
pbs Configure passage-based summary.

Attach to a collection before searching it. In this case I'm attaching to the vspider collection that was created without specifying a locale. Therefore my rcvdk working locale matches the locale of the collection, englishx.

RC> attach /opt/coldfusionmx7/verity/collections/vspidertest3
Attaching to collection: /opt/coldfusionmx7/verity/collections/vspidertest3
Successfully attached to 1 collection.

Try a wildcard search and then look at the results

Detach or let go of the collection and quit

RC> detach
Attached collections [1]:
Enabled: /opt/coldfusionmx7/verity/collections/vspidertest3
RC> quit
[root@ps-port bin]#

Now, run rcvdk without specifying a locale, but try attaching to a collection having a different locale

[root@ps-port bin]# ./rcvdk
rcvdk Verity, Inc. Version 5.5.0
Attached collections [0]:
Type 'help' for a list of commands.
RC> attach /opt/coldfusionmx7/verity/collections/macr_verity_test2
Attaching to collection: /opt/coldfusionmx7/verity/collections/macr_verity_test2
>> Error E3-0036 (VDK): Collection's locale(english) not compatible with Session's locale(englishx)
Error attaching to collection: /opt/coldfusionmx7/verity/collections/macr_verity_test2
RC> quit
[root@ps-port bin]#

Start rcvdk again, but change the locale to english, or English Basic. This is appropriate for the collection created in the CF Admin with English Basic locale.

[root@ps-port bin]# ./rcvdk -locale english
rcvdk Verity, Inc. Version 5.5.0
Attached collections [0]:
Type 'help' for a list of commands.

Attach to the collection and test running a few word searches

RC> attach /opt/coldfusionmx7/verity/collections/macr_verity_test2
Attaching to collection: /opt/coldfusionmx7/verity/collections/macr_verity_test2
Successfully attached to 1 collection.
RC> search bob
Search update: finished (100%). Retrieved: 0(0)/9.
RC> search Bill
Search update: finished (100%). Retrieved: 0(0)/9.
RC> search foo
Search update: finished (100%). Retrieved: 5(5)/9.
RC> search cfdocument
Search update: finished (100%). Retrieved: 1(1)/9.
RC> search bill
Search update: finished (100%). Retrieved: 0(0)/9.
RC> search Writer
Search update: finished (100%). Retrieved: 0(0)/9.
RC> search months
Search update: finished (100%). Retrieved: 1(1)/9.

Search again, using a Boolean operator and then examine the results

RC> search months AND document
Search update: finished (100%). Retrieved: 1(1)/9.
RC> results
Retrieved: 1(1)/9
Number SCORE VdkVgwKey
1: 0.7967 /opt/coldfusionmx7/wwwroot/macr_verity_test/content/foo.pdf

Now try using the summarize action on the 1st result in the set (a set of just 1 in this case). I suppose if I changed the style.uni file I could get this to work.

RC> summarize 1
1: 0.7967 /opt/coldfusionmx7/wwwroot/macr_verity_test/content/foo.pdf
>> Error E0-1514 (Drvr): TstrIOFilter:flt_lang: (-19987) Couldn't find KV filters
>> Error E0-0720 (I/O Filter): Could not load filter 'flt_lang ' which is named in your style.uni file.
RC> summarize
1: 0.7967 /opt/coldfusionmx7/wwwroot/macr_verity_test/content/foo.pdf
>> Error E0-1514 (Drvr): TstrIOFilter:flt_lang: (-19987) Couldn't find KV filters
>> Error E0-0720 (I/O Filter): Could not load filter 'flt_lang ' which is named in your style.uni file.

Now detach from the collection and quit.

RC> detach
Attached collections [1]:
Enabled: /opt/coldfusionmx7/verity/collections/macr_verity_test2
RC> quit
[root@ps-port bin]#

 


Comments

There are no comments for this entry.

 

 

Calendar

 
Sun Mon Tue Wed Thu Fri Sat
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30    

Search This Site

 
This is an exact search only

About This Site

 
Adobe Alumni & Community Professional. Expert in ColdFusion, Flex, LCDS, Photoshop, Lightroom. Linux RHCE. Follow Me!. For my photography check out Boston Portrait Photographer.
More about me

Recent Entries

 
ColdFusion 9.01 Server Monito..

Recent Comments

 
Posted By Swagat:
Ben Forta, best-selling ColdFusion author is coming to India this August at India's largest Adobe Flash Platform Conference. Ben Forta will conduct a ...

Posted By Steve:
The updated presentation I gave at CF.Objective() 2010 is available here: [link] At the end of the preso I gave a brief, pre-recorded demo of wri ...

Posted By Brad Munz:
I've come across a OOM problem in HotSpot which looks alot like this: java.lang.OutOfMemoryError: requested 4096000 bytes for GrET in /BUILD_AREA/jdk6 ...

recently played

 

no song is playing

now playing, a plug-in for itunes

Categories

 
RSS Adobe (34)
RSS Bicycling (9)
RSS Blogging (39)
RSS Books (13)
RSS Breeze (13)
RSS CFMX Podcasts (10)
RSS ColdFusion (429)
RSS Computer Technology (51)
RSS Events (26)
RSS Flex (20)
RSS Gadgets (10)
RSS HiTech Industry (16)
RSS Java (25)
RSS Learning (57)
RSS Linux (70)
RSS Mac OS X (22)
RSS Macromedia (27)
RSS Meetup (35)
RSS New England (62)
RSS Odds & Ends (25)
RSS Outdoors (32)
RSS Personal (29)
RSS Photos (111)
RSS Photoshop (29)
RSS Podcasts (18)
RSS Rants (19)
RSS Restaurants (8)
RSS Science (34)
RSS Spain (16)
RSS Travel (42)
RSS Twitter (10)
RSS Video (20)
RSS Webcam (3)
RSS Writing (10)

Blogs I Read

 
Terrence Ryan
Ben Forta
Ray Camden
Kinky Solutions
Dan Vega
Gary Gilbert
Simeon Bateman
Red Hat Blogs
O'Reilly Digital Media
O'Reilly Radar
John Nack
The Strobist
Scott Kelby
Matt Kloskowski
Joe McNally
Digital Photography School
Engadget
Science Blog

RSS

 


Add to Google
Add to My Yahoo!

Aggregated By

 


Aggregated by ColdFusionBlogger.org

Credits and Stuff

 
BlogCFC - Free ColdFusion Powered Blog Software
CJM Group - ColdFusion Website Hosting


 
 
blog | photos | flickr | referers | webcam | stats | about | contact
 
Copyright © 2010 Steven Erat. All rights reserved.
This is a personal weblog. The opinions expressed here represent my own and not those of my employer