I am trying to use indexing service in a batch program. I have just started playing with it and I need some guidance. I am using ixsso.dll and I emulate some VB code and things have not worked as expected. Here is some sample code (remember this is a rudimentary atempt):
use strict; use Win32::OLE; #Set in Ixsso.query my $catalogPath = "d:\\resumes"; my $ixssoQueryRef; my $ixssoUtilRef; eval{ my $classId = "ixsso.query"; $ixssoQueryRef = Win32::OLE->new($classId); $ixssoUtilRef = Win32::OLE->new("IXSSO\.Util"); #Commented out if(0){ my $conn = Win32::OLE->new('ADODB.Connection'); my $test = Win32::OLE->new('ADODB.Recordset'); $conn->Open('provider=msidxs'); } #$test = $Win32::OLE->QueryObjectType($ixssoQueryRef); my $queryString = "<some query string>"; $ixssoQueryRef->Catalog($catalogPath); $ixssoQueryRef->Query($queryString); $ixssoQueryRef->MaxRecords(1); $ixssoQueryRef->AllowEnumeration(0); $ixssoQueryRef->Dialect("1"); $ixssoUtilRef->AddScopeToQuery($ixssoQueryRef, "\\", "deep"); $test = $ixssoQueryRef->CreateRecordSet("nonsequential"); }; if($@){ print "Error: $@\n"; }
I get a reference to the object but when I attempt to execute the querey I get undef. I imagine it could be the way the query string was structured. Should I scrap the above aproach and use as an ADO connection? Any assistance that anyone can provide will be very helpful... Thanks

In reply to Indexing service by TAC

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.