ColdFusion Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreColdFusion Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 30th, 2005, 03:20 PM
fraumeni fraumeni is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 9 fraumeni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 55 sec
Reputation Power: 0
Verity Field Searches

I am migrating an existing SQL query search into a Verity search and need to support field searches (like +title:"title to search for".) The doc on this is located at "http://livedocs.macromedia.com/coldfusion/7/htmldocs/wwhelp/wwhimpl/js/html/wwhelp.htm?href=00001327.htm".
I went into each of Verity's .iqp files and set enableField to 1 (and rebooted), and my search is of type "internet". However, when I search for a particular field, I never get any results. I have tried all syntaxes I can think of: pubyear:2002, +pubyear2002, -pubyear:2002, pubyear:"2002", etc. I also tried making it a CUSTOM1 field when indexing and trying CUSTOM1 and CF_CUSTOM1 as parameters (but those only worked with search type simple and Verity operators like <CONTAINS> ). There is no "style.tde" file anywhere in my ColdFusion directory tree, nor mention of it in LiveDocs save that it is used by mkvdk, but not how or where it should be.

Is there anything I am missing? It took me a good bit of searching just to figre out where enableField was (the above page is also the only instance of the word "enableField" on the entire Macromedia web site besides the same page in what I think is Japanese.)

Has anybody done this? If I can, I want to avoid having to make a Verity search for general fields, then a SQL query to constrain those results with fields specified.

Thanks very much.

Last edited by fraumeni : October 4th, 2005 at 04:02 PM. Reason: figured out one step, failed at the next

Reply With Quote
  #2  
Old October 3rd, 2005, 08:45 AM
kiteless kiteless is offline
Moderator
Dev Shed Expert (3500 - 3999 posts)
 
Join Date: Jun 2002
Location: Raleigh, NC
Posts: 3,689 kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level)kiteless User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Week 4 Days 16 h 33 m 51 sec
Reputation Power: 53
I've never needed to do it but I'd be interested to hear the result if you determine a solution.
__________________
Ask if you have a question, but also help answer questions that you have knowledge of! Thanks, Brian.
How to Post a Question in the Forums

Reply With Quote
  #3  
Old October 18th, 2005, 11:29 AM
fraumeni fraumeni is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2005
Posts: 9 fraumeni User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 3 h 55 m 55 sec
Reputation Power: 0
My solution is to bypass ColdFusion and just use the Verity command-line utilities. I was also able to put fields in to be searched by field name that were not indexed for general search.
I had to do a good bit of searching to figure out the different formats for the assorted Verity config files, but was able to get a collection with any number of custom fields in it by using mkvdk with a custom style.ufl file, and a custom bulk import file.
I exported the data I wanted to index into a .csv file. I then made a quick Python script which read in the file and made a new directory containing one text file (originally, it was html) out of each row in the .csv file with the terms I wanted to be searched without field specifiers. Also in this directory I made a bulk insert file, in which you can specify explicit values for collection fields specified in the style files.

Let me know if you would like more information about where these files are or their syntax.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreColdFusion Development > Verity Field Searches (enableField?)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway
Stay green...Green IT