Solved

Can we make IS / ixsso.Query perform an AND query by default?

Posted on 2009-05-14
3
418 Views
Last Modified: 2013-12-24
We are using the ixsso.Query object to access an indexing service catalogue through a ColdFusion script. We are currently having issues with structuring the query. The website has a single field free text input and assumes the user entering the text in an unstructured form.

We need to perform queries that AND all the inputted keywords.

Example queries:
These examples are using a IS catalogue which has indexed 700 pages indexed. The target page has this heading:
<h2>Defence Train the Trainer (Consolidation) - 2003 </h2>

Train the trainer 2003
Returns 350 pages, clearly it is ORing the terms

Train the trainer 2003
Returns 1 page  the target page

We want to enable the user to enter the term to return the 1 page, weve tried taking the search term and programmatically turning it into AND separated terms.

e.g.

Train AND the AND trainer AND 2003
Returns:
AutomationException: 0x80041605 - The query contained only ignored words

If we remove the the and try

Train AND trainer AND 2003
Returns 1 page  the target page

This is obviously because were removing the noise word before constructing the query, however the list of noise words is quite extensive, so we would need to write a routine to check and clear any search term of noise words before its submitted to IS.

Questions.
"      Can we make IS / ixsso.Query perform an AND query by default?
"      Can we make IS / ixsso.Query ignore the noise words?
 

Code used
 
cmssearch = createobject("com", "ixsso.Query");
cmssearch.Catalog("training"); 
cmssearch.Query = searchterm;
cmssearch.SortBy("rank [d]");
cmssearch.Columns("path");
searchresults = cmssearch.CreateRecordset("nonsequential");
fields = searchresults.fields;

Open in new window

0
Comment
Question by:rupertb2
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 22

Accepted Solution

by:
cj_1969 earned 500 total points
ID: 24394914
Take a look at this page ... http://msdn.microsoft.com/en-us/library/aa480443.aspx

I have got mixed information as to IS supporting the AND operator.
According to MS, it does not, at least in version 2.  But in the page referenced above it clearly shows and documents using it.  It also supports the NEAR operator (even in ver 2) which is like the AND operator but apparently it will rank the results differently depending on how far apart the words are in the document.

In the page I reference it also mentions using a comma to separate the values.  This will again change the ranking of the page hits depending on how many of the terms that it finds in the page.

One thought ... since the search engine has a built in fuzzy logic engine if it does not work with the multiple AND statements between the words, try creating a precedence using () to keep it to 2 word terms ...
i.e.  ( ( ( term1 & term2) & term3 ) & term4) it might be able to handle it in this fashion.
0
 

Author Closing Comment

by:rupertb2
ID: 31581656
Useful lateral approach
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

A quick step-by-step overview of installing and configuring Carbonite Server Backup.
A phishing scam that claims a recipient’s credit card details have been “suspended” is the latest trend in spoof emails.
Email security requires an ever evolving service that stays up to date with counter-evolving threats. The Email Laundry perform Research and Development to ensure their email security service evolves faster than cyber criminals. We apply our Threat…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

749 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question