Skip to main content
September 27, 2010
Question

weighting fields in verity

  • September 27, 2010
  • 1 reply
  • 628 views

I have a verity collection that indexes title, summary, and body fields from a table.  If I copy & paste an article's title into the search (without quotes), I get over 1,000 search results, and the article is in there somewhere.  But if the title is an exact match, I would think this should be at the top of the list?  So is there a way to tell it "this is the title field, it should have a higher rank"?

If I put the title in quotes, it is the only one returned -- so I know it's in the collection somewhere.

Running CF8.  Thanks.

This topic has been closed for replies.

1 reply

September 30, 2010

No one has an answer?  If it's not possible, that would be good to know so that I stop looking, or look for different methods of searching.  But if it is possible, it seems like someone would know how.  Thanks.

Inspiring
September 30, 2010

I've never had to do this, but is this link any use to you: http://help.adobe.com/en_US/ColdFusion/9.0/Developing/WSc3ff6d0ea77859461172e0811cbec22c24-7b18.html

CF's support for Verity is not fantastically well-defined, and as Verity doesn't actually exist any more, there's none of its own docs to read (and I could never find them even when it did exist... it's funny... the most impentrable search interfaces I have ever experienced have been those provided by search engine companies...)

You've basically got what's in Livedocs to go on.

Have you looked at what one can do with Solr?  Is Solr an option for you?

--

Adam

September 30, 2010

I came up with a workaround -- after the cfsearch, I loop through the search results and compare all of the words of the search phrase to the title of the articles, and for each word matching, I bump the score manually.

But this brought to light another issue -- before bumping the scores, I noticed that they're all "1.000", which shows that the title wasn't being weighted.  Where is this "1.000" coming from, and is there any way to get a real score instead?  Then maybe the title bumping won't be needed...