Solved

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

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

Best Practices: Disaster Recovery Testing

Besides backup, any IT division should have a disaster recovery plan. You will find a few tips below relating to the development of such a plan and to what issues one should pay special attention in the course of backup planning.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
IIS 7.5 to 8.0 6 109
How to know how many IP addresses your ISP give you 4 26
Disable SSLv3.0/TLSv1.0 - Windows 2012R2 3 33
web & database SERVERS -- PHYSICAL & VM ? 5 56
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…
Restoring deleted objects in Active Directory has been a standard feature in Active Directory for many years, yet some admins may not know what is available.
Although Jacob Bernoulli (1654-1705) has been credited as the creator of "Binomial Distribution Table", Gottfried Leibniz (1646-1716) did his dissertation on the subject in 1666; Leibniz you may recall is the co-inventor of "Calculus" and beat Isaac…
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…

772 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