I’ve been working on an application that leverages the Laserfiche SDK 8.3. Recently I’ve hit a roadblock trying to get search results from a particular folder through the SDK. More specifically, the results I get from a given search query are different between when I execute that query through the client and when I execute it through the SDK.
Here are the nitty-gritty details:
I have a folder in my repository called Records Retention, which contains three subfolders: College Bound, Passport, and State Need Grant. I’m interested in finding every document under that folder for which a certain template key has no value. Using Laserfiche’s native querying language, that query looks like this: {LF:LookIn="\Records Retention", Subfolders=y} & {[Receivables]:[Receivables Debt ID]=""}
The problem is that when I run this query in the LaserFiche client, it returns 23507 entries (all but <500 of them coming from the State Need Grant subfolder), which is precisely the number I expect; while running the same query using the SDK’s Search class returns only 344 results. What makes this number 344 especially interesting is that it’s precisely the number of results that would be returned if the query were only looking in the \Records Retention\College Bound folder.
I don’t make any changes to the default values of the Search class before calling the Run() method, and the only change I make to the default values of my SearchListingSettings before calling GetResultListing() is to add the System column. Are there other adjustments I need to make to these settings in order to get the results I expect? It really looks like the query looks through one subfolder and then stops. Please let me know if you have any insight into this issue.
Thanks