Solved

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

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

Connect further...control easier

With the ATEN CE624, you can now enjoy a high-quality visual experience powered by HDBaseT technology and the convenience of a single Cat6 cable to transmit uncompressed video with zero latency and multi-streaming for dual-view applications where remote access is required.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS Cache Control settings 2 25
Active Directory not migrating to 2012 DC correctly 35 83
ColdFusion 9 CF Administrator and Request Filtering 3 26
IIS FTP Logging 10 39
Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

829 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