|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ColdFusion Development > Verity Field Searches (enableField?) |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|