I've found out about ExamineDB today, which is exactly what I need for a project I'm working on. I have set everything up, have no errors and the index is built but it's always empty.
On my ExamineSettings.config file I have added the following for the Index Provider:
<add name="SageProductsIndexer" type="ExamineDB.Indexers.DBIndexer, ExamineDB"
indexSet="SageProductsIndexSet"
nodeType="SageProducts"
connectionStringName="umbracoDbDSN"
sql="SELECT ItemID, Description, Barcode FROM dbo.SAGE_Item"
singleRecordSQL = "SELECT ItemID, Description, Barcode FROM dbo.Sage_Item WHERE ItemID = '@0'"
primaryKeyField = "ItemID"/>
I started having problems with individual adds to the index. After some investigation I realized some of the IDs were lengthy, which prevented records to be added to the Lucene index.
Changing the ID field (to an autonumber one) fixed the issue.
ExamineDB is not populating Index
Hey everyone.
I've found out about ExamineDB today, which is exactly what I need for a project I'm working on. I have set everything up, have no errors and the index is built but it's always empty.
On my ExamineSettings.config file I have added the following for the Index Provider:
And the following for the Searcher:
As for the IndexSet, in the ExamineIndex.config file:
Like I said, I have no errors. I have installed the ExamineDB Tool as well and I am able to build/rebuild the index.
The thing is: it's always empty.
The table has more columns than the ones presented. I am adding them here just for your reference:
Any ideas?
Thank you all in advance.
I realized the issue has to do with reindexing everything. If I try to index one item at a time, it works.
All right I figured the problem out.
I started having problems with individual adds to the index. After some investigation I realized some of the IDs were lengthy, which prevented records to be added to the Lucene index.
Changing the ID field (to an autonumber one) fixed the issue.
Hi Sérgio
Thanks for sharing solution with the community! Have a great day!
Alex
Thanks, Alex. This was not an easy one, although the solution was right there.
Take care!
is working on a reply...