Verity search ranking
Hi,
I've been playing around with verity and was wondering if
there is a way to modify the way verity does its ranking.
Say I'm looking for Foo Bar, but I'd like to include those
with just Foo and those with just Bar, but those should be right at
the end (low score). How can I achieve this?
Using OR will give documents with Foo, documents with Bar,
and documents with both Foo and Bar the same score (0.7967). And if
I do an ANDed search I only get the last one (which I'd expect). Is
there a way express my request better, or configure verity to index
around my own personal taste.
Search Term:
Foo Bar
Order I'd like:
documents with both Foo and Bar (score ~1.0)
documents with just Foo (score ~0.5)
documents with just Bar (score ~0.5)
Thanks,
J_C_C
In my understanding enterprise can index 1 location. That can
either be the localhost or another server. Not both. If it is on
another server you must install verity from the Coldfusion disc.
Then in the admin look under "Data & Services" -> Verity K2
Server to set the server name.
I am unsure if this can be done with standard edition.
Similar Messages
-
I'm having trouble with my verity search results page.
Some of the document titles are missing, the score is fine, its just the title that seems random.
Can anyone help?
My code is below:
search form:
<p>
<strong>What would you like to search for? </strong>
<form name="form1" method="post" action="?area=documentresults">
<p>
<input name="criteria" type="text" id="criteria">
<input type="submit" name="Submit" value="Submit">
</p>
</form>
</p>
results :
<cfsearch name="YourSearchName"
collection="documents"
criteria="#form.criteria#">
<strong>Your Results</strong>
<cfoutput query="YourSearchName">
<p><a href="documents#URL#">#title#</a><br>
Score: #score#</p>
</cfoutput>limabravo wrote:
> the collection is utf-16(comming from a mssql database).
I have a verity
> collection in traditional chinese and one in simplified
chinese. But the data i
> put into the collection won't be retuned when i search
on it. And even when i
> get results(sporadicly) the "summary" field contains
different characters then
> that i put into the collection.
not 100% sure but i think you want unicode encodings not the
"language" ones as
i think those are codepages. and i also don't think you want
utf-16, utf-8 is a
better choice w/cf. -
Sorting a Query of a Verity search
I'd like to sort a verity collection's output by the latest
date of the record.
The way I did this in CF5 was to query the results of the
verity search ORDER BY KEY DESC (key being the ID of the record,
and therefore I got the order the way I wanted it)
In CFMX it does not allow this, here is the error I'm
getting:
Query Of Queries syntax error.
Encountered "KEY. Incorrect ORDER BY column reference [KEY].
Only simple column reference, alias name, and integer column
id are allowed.
(an interesting note is that when I pass the records ID to
CUTOM1 the sort works, however, I cannot do that because the way I
built the results to display is based on the key desc etc.....)
anyone know why this is and how to get around it?
Thanks
YankeeWhat position in your select statemen is the KEY column? If
it is in the first position, just ORDER BY 1 DESC, if it is in the
second, ORDER BY 2 DESC, etc.
Phil -
I just started a Verity search engine for a very large site,
and have gotten the following error message a couple of times:
There was a problem while attmpting to perform a search.
Query has a parsing error. (-40)
at com.verity.k2.K2Search.receive(Unknown Source)
at com.verity.search.ProcessSearch.processNormal(Unknown
Source)
at com.verity.search.ProcessK2Operation.submit(Unknown
Source)
at com.verity.search.VSearch.getPSearch(Unknown Source)
at com.verity.search.VSearch.getResult(Unknown Source)
at
coldfusion.tagext.search.SearchTag.doSearch(SearchTag.java:260)
at
coldfusion.tagext.search.SearchTag.doStartTag(SearchTag.java:157)
at
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1908)
at cfsearch2ecfm246570528._factor0(...\search.cfm:36)
at cfsearch2ecfm246570528._factor5(...\search.cfm:30)
at cfsearch2ecfm246570528.runPage(...\search.cfm:1)
at coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
at
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:343)
at
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
at
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.ja...
<br>The error occurred on line 36.
The tag for the search is as follows:
<cfsearch collection="#form.collect#" language="English"
type="SIMPLE" criteria="#Session.searchTerm#"
name="Session.results">
on line 36.
I have not been able to reproduce the error, and there isn't
anything strange about the search terms submitted.
This is the first time I've used Verity, and would appreciate
any words of wisdom as to what might be the cause of this error,
and how to eliminate it.ok the value is 0
but i am not sure what that means, i havnt used verity
before?
can you help
just to let you know what i need to do,
i have a results page which show 1 surname with all that
persons information, on the same page there is a search by surname
text box, when this is submited i need to move to the first recoed
that matches the text box, so then i can still use the next and
previous buttons to navigate through.
so really what i need to do is get all the records order them
by surname then give each of them a id number
so Abbot = 1, Adcock= 2 etc
then i should be able to use the next and previous to go
through them?
i am just not sure how i can do this?
hope you can usnderstand what i am trying to do.
many thanks -
I have recently upgraded to coldfusion 8. I reworked my
verity searches but the main one of the website times out. I have
gotten it to complete a couple of times but this time it will not
complete. I have no clue what to change to make it index. I would
appreciate any help.
ThanksThis is the error "The request has exceeded the allowable
time limit Tag: cfoutput " It is a verity search of my website
"www.archives.alabama.gov" there are over 26,000 documents. It has
always worked fine until the upgrade to v.8 and it worked the first
several times but now it is timing out with the above message
everytime. I do not know where that tag is or how to change it.
That is what I need to know. -
Verity Search - exclude html tags when indexing?
I have a table I want to index, but some data stored in the
table contains HTML.
I want to index the content, but I want all HTML tags to be
excluded.
This is a problem, say you had a table storing all retail
stores, there's some HTML in the data, and you do a Verity search
for "Target" (as in the Target retail store). You will return a lot
of irrelevant results if there's a
target="blank" attribute in an A HREF tag, for example. Can
you strip these out during the <CFINDEX> ?
Any idea on how to accomplish this?Hi user494326,
I'm actually having trouble getting html into a CLOB. It sounds like you were able to do this successfully. What did you do to get it in as far as escaping characters, etc. I'd love to see how you handled that, it would be greatly appreciated! -
Verity Search Service in JBoss
Hi All,
Good morning!
Here my question is about Verity Search Service. I'm using Windows OS in my local machine and my DEV system is using Linux OS. In both these machines, Verity Search is working properly and our code works good. When we to do the same thing on the Client server its not working. We are always getting a message that the Coldfusion Verity Search service is not started/ not there.
Our Client server is built in JBoss and Coldfusion.
Can you please guide me how to start the Verity Search Service in the JBoss?
Here is the error message we are getting.
On Windows, you may need to start the ColdFusion Search Server from the services control panel.
On Unix, you may need to run the search startup script in the ColdFusion bin directory.
Error: java.io.IOException: unable to obtain from connection pool: cannot make connection to server at: k2://localhost:9953"
Thanks in advance!Hi Amar,
Thank you for the quick response
regards
Nicolai -
Verity search engine or Google Mini?
Im setting up a website for a medium sized business and havnt
implemented the Coldfusion Verity search into the site yet... but I
was looking over the Google Mini and seems like an nice/intuitive
nice little box.
Should I go with the $2000 mini price tag if the company
wants effecient search results?Do a malware check with some malware scan programs.<br />
You need to scan with all programs because each program detects different malware.<br />
Make sure that you update each program to get the latest version of the database before doing a scan.<br />
* http://www.malwarebytes.org/mbam.php - Malwarebytes' Anti-Malware
* http://www.superantispyware.com/ - SuperAntispyware
* http://www.microsoft.com/windows/products/winfamily/defender/default.mspx - Windows Defender: Home Page
* http://www.safer-networking.org/en/index.html - Spybot Search & Destroy
* http://www.lavasoft.com/products/ad_aware_free.php - Ad-Aware Free
See also "Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked and [[Searches are redirected to another site]] -
Verity Search Server on Macintosh
I was intending to use the ColdFusion Verity Search Service but the service is unable in the ColdFusion Administrator. It would seem the server needs to be installed separately but the link in LiveDocs is unavailable, I’m using CF8 developer on a Macintosh, if anyone knows where I can find the installation software that would be appreciated. Thanks.
I don't know about that, pwizzard. Here's something else to consider. While there's no "Mac" installer, there is a Linux one. I think that will work for you. Note that you do need to have a license key for CF to get to it. (In other words, this won't work if you're using the Developer edition, because it has no license key.)
Short answer:
Go to the page, https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity, enter your CF license key (standard or enterprise), and download the installer (for Linux) from there. Let us know if it works
It's also unfortunate that the /go/verity/ link fails. While we can't change the CF8 licvedocs page you found, I did change the corresponding CF9 page to offer the link above.
Long answer:
As for how I figured out that this may be what you need, here's what I did, in case any of it may help you or others in the future.
First, I recalled that there was a page of installers that went along with CF. I couldn't remember the link, but I trusted that the Adobe CF site would get me there.
- I went to the CF front page (can be found via google): http://www.adobe.com/products/coldfusion/
- choose link in lower right of right nav bar for CF8: http://www.adobe.com/products/coldfusion/coldfusion8/
- choose link to download trial
- log in (if you don't want to login, just keep reading).
- choose link for "related ColdFusion downloads": http://www.adobe.com/support/coldfusion/downloads.html
- and note that you could also just visit that link directly, now that you know it, without needing to log in
- there, it offers a section on "Verity (language packs and standalone installer)", and it has the link I offered above
Admittedly, that page says that the installer is meant for installing Verity on a machine separate from CF, so I wondered if it was what you really needed. I decided to search google for help (coldfusion install verity) and found this http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=othertechnologies_06.htm l. I guess that's the page you had found, because it offers a link to get to the installer, as http://www.adobe.com/go/verity, which fails (and because this is the CF8 docs, we can't even update it with a corrected link if we find one.)
But note that these help pages offer a popup box that offers a link to the CF9 docs: http://help.adobe.com/en_US/ColdFusion/9.0/CFMLRef/index.html. Unfortunately, that goes to the front page of the docs. You need to note where you were on the previous page (bummer). At the top of the CF8 doc page, we see that the page was within "Installing and Using ColdFusion / Installing Integrated Technologies". We can select that from the CF docs front page, which opens to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18c28 -7ff1.html.
The link for the verity page itself is http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html. Sadly, that page (almost identical to the CF8 one) also has that failing link, but at least we can update the page with the proper one.
I wasn't positive that it was the right link, until I did some more digging. (FWIW, I tried to find any old version of the go/verity page at archive.org, but no luck. Returning to the google search results list, I did find this, though: http://www.adobe.com/support/coldfusion/verity_reg/register/index.cgi. That looked just like the first link offered above, though only for CF7, so I was more confident that the first link I offered is indeed what you need.)
I thought to search google for the specific phrase "adobe.com/go/verity", and there it found a couple of other CF9 doc pages, and one of them (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity) did also have the bad /go/verity link, and someone offered in a comment a link to (again) the original download page I offered (https://www.adobe.com/cfusion/entitlement/index.cfm?e=verity). So that really seems the right page, and I have added a comment to http://help.adobe.com/en_US/ColdFusion/9.0/Installing/WSc3ff6d0ea77859461172e0811cdec18969 -7ffd.html.
One last thing: while the download page doesn’t have an OS X-specific installer, the help page does mention OS X and says getting this installer is the solution, and it does offer a Linux installer to look for, so I suppose that's what you are supposed to you. One thing that still has me a little suspect of things is that I did use a key to get to that download page, and I see the filename offered for the Linux installer is "coldfusion-search-lin.bin", not the "ColdFusion_9_Verity_linux.bin name offered". But maybe it's just a doc inconsistency.
Anyway let us know if it helps.
/charlie -
Is it possible to encrypt the url of the file in the verity
search results, so that the user can't view the actual folder
structure of the file. Please help if some one knows how this could
be done. I would really appreciate it.
ThanksThe issue is not how to remove all CFM files from the
collection. We just want CFM files that do not output anything to
the user to be excluded from the search index. Most of the files in
this site are CFM files. Most importantly would be application.cfm,
form action pages, and other included files.
Certainly we could parse the results for a filename in a
predefined list, but we are trying to avoid defining this
programmatically; thinking that it is odd that these files get
included in the results at all. In the past we have segmented sites
using .cfm and .cfml as a way of excluding specific files from the
index (in the collection definition, we would not include the
specific extension as required). But this site has been in
production for some time, and is just now adding a search feature.
We don't want to rename files, and have to recheck every single
page and link in the entire site.
Does that explain what we're trying to do better?
Cheers,
Kris -
I am wondering if there are any security risks with submitting a form entered search and the <cfsearch tag? Currently I'm filtering to allow only alphanumeric characters plus one or two others, but presumably if characters such as angle brackets < > have special meaning to the search engine it is not possible to inject malicious code?
Any help with this and guidance as to where there is a concise explanation of Verity search criteria with examples would be most welcome.
Thanksoh this is the code
<CFINDEX
collection="collectcmi "
action="refresh"
type="PATH"
key="D:\www\"
extensions=".html, .htm, .cfm, .cfml"
language="spanish"
recurse="yes"
urlPath="
http://mywebsite"
> -
Verity Search using CF 4.5
Hi,
I am using CF 4.5 and have a verity search set-up on a
intranet. The search works in that in returns data, however I am
having a few problems, some of the returned links return for
example www.hotmail.com/www.hotmail.com/people/index.htm where the
correct link should be www.hotmail.com/people/index.htm.
Asso, if i remove a folder from the intranet folder
structure, it is still returning the file when a search is carried
out.
Any comments would be greatly welcomed.
ThanksIts as safe as using any other vendor de-supported software.
Eventually, you will probably have to replace hardware and run into
problems where you won't be able to find an operating system that
will support it, etc., not to mention unavailable drivers that
interconnect you to your databases, etc.
Phil -
Hi,
Does Verity Search able to index files (pdf, xls, doc) from
network drive(s)? If it does, what should I do in order to index
files from mapped drive?
Thanks,
Andy> Does Verity Search able to index files (pdf, xls, doc)
from network drive(s)?
I dunno. But the first thing I'd do if I needed to know would
be to give
it a go and see what happened. And if it didn't work, and
couldn't work
out why, then I might post what I'd tried so far on a forum,
and ask for
help work out what's wrong.
I wouldn't do those steps in the reverse order though (which
it seems like
you might be doing, on the basis of the info you've given
us).
> If it does, what should I do in order to index files
from mapped drive?
I'd possibly start by reading the docs on the various Verity
tags and areas
of functionality that are provided with CF.
What makes you think you need to do anything different with a
network-stored file to a locally stored file?
Adam -
Verity search results across multiple pages
Hi, I am attempting to implement verity search on my website and am using the code below for the search, and search results page.
Currently the results are limited to 5 as specified by the maxrows command. How can I implement a forward and back feature across multiple pages? (like google search results)
Search:
<cfparam name="form.params" default="">
<cfparam name="target" default="searchVerity">
<cfoutput>
<form method="post" action="results1.cfm">
<p>
Enter your search term(s) using AND, OR, NOT and parens.
Surround an exact phrase with quotes.
</p>
<input type="text" name="params" size="75" value="#form.params#">
<br />
<input type="submit" value="Search">
</form>
</cfoutput>
Result Page:
<cfparam name="form.params" default="">
<cfparam name="target" default="searchVerity">
<cfsearch
name="foundResults"
collection="search"
criteria="#form.params#"
contextPassages = "1"
contextBytes = "300"
maxrows = "5">
<hr />
<h3>Search Results</h3>
This search returned a total of <cfoutput>#foundResults.recordCount#
</cfoutput> results.
<cfoutput query="foundResults">
<hr />
<p>
File: <a href="#foundResults.URL#" target="_blank">#
foundResults.title#</a> (score=#foundResults.score
#)<br />
Highlighted Summary: #foundResults.context#
</p>
</cfoutput>Hi All,
Has anyone tried to implement the jsptags in Servlets?
I am using Servlets and required a Search display like this. I have my results being retrieved from a class and I am trying to display these results in a table format.
i.e.
Customer c = new Customer();
c.retrieveCustomers();
then i iterate through the customers
while(c.next){ -
How to start Verity Search Service in Coldfusion with JBoSS on LINUX OS?
Hi,
On Windows, you may need to start the ColdFusion Search Server from the services control panel.
On Unix, you may need to run the search startup script in the ColdFusion bin directory.
The above is the error message we are getting it when we run Verity Search code.
The code which is actually working fine in Windows(Local Environment).
Its not working in our Client System, the configuration is Coldfusion 9.0 with JBoss installation on LINUX Operating System.
Your help is highly appreciated.
Thanks in advance!service generally manages the lower level services on the system.
High level services such as Apache are managed via serveradmin:
serveradmin status web
serveradmin start web
Maybe you are looking for
-
Safari hangs almost everytime I reply to messages on this board
I have at home what I consider a fairly fast Verizon Business FIOS (15/2 megabit) connection, which along with Safari works extremely well, but invariably almost always hangs up when I access this AppleScript message board. It hangs up mostly when I
-
Inbox is empty 1000s of emails missing
Thunderbird is always up and running. Got back from work and inbox was entirely empty. Had 1000s of emails in that folder. I have account settings to never delete anything. There were similar questions in this forum but not a single suggested action.
-
I have forgotten/never had a passcode for my ipad how can I find/set one up?
I have forgotten/never had a passcode for my ipad. How can I find/set one up?
-
How can I play videos on my Mac using my iPad?
I have videos on my Mac mini that I want to watch on my iPad. All devices are on the same network.
-
How to run our own jar files on Nokia 3100
Hi, I am new to J2me. I have written an J2me application using CLDC1.1 and MIDP 2.0 it works well on emulator but when i tried to run it on device(Nokia 3100) it displays an error "Invalid File" please answer my question as soon as possible