Solved

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

Posted on 2009-05-14
3
413 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Join & Write a Comment

Setting up a Microsoft WSUS update system is free relatively speaking if you have hard disk space and processor capacity.   However, WSUS can be a blessing and a curse. For example, there is nothing worse than approving updates and they just have…
One of the typical problems I have experienced is when you have to move a web server from one hosting site to another. You normally prepare all on the new host, transfer the site, change DNS and cross your fingers hoping all will be ok on new server…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

746 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now