Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I originally posted this on the Umbraco API forum but have got zero response, so I'm hoping this might be a better forum to post this in.
I have got a load of products that are indexed in Examine, and I am doing searches on part codes. The weird thing is that my searches are returning results if I search for part of the code, but in some cases not if I search for the code exactly.
For example, I have a part code WS-C3750-24FS-S in my database.
If I search for "WS-C3750-24FS-S" then it doesn't return any results.If I search for "WS-C3750-24FS-" (minus the last S) then it doesn't return any results.If I search for "WS-C3750-24FS" (minus the last two characters "-S") then it returns my product!
Another example is the part code BS-START-VCO in my database.
If I search for "BS-START-VCO" then it doesn't return any results.I have to reduce this down to just "BS" before it returns BS-START-VCO.
It looks like Examine has some sort of issue with the hyphens in the product codes. Is it using them as a wildcard or something?
My code to do the search is:
Dim SearchResults = ExamineManager.Instance.SearchProviderCollection("ProductIndex").Search(SearchTerm & "*", True)
My indexer is configured like this:
<add name="ProductIndexer" type="UmbracoExamine.UmbracoContentIndexer, UmbracoExamine"supportUnpublished="false" analyzer="Lucene.Net.Analysis.Standard.StandardAnalyzer, Lucene.Net" indexSet="ProducttIndexSet"/>
Did you ever find a solution? This seems to still be an issue even with v7+
This has me stuck too. I'm simply trying to do a search for (example) "HB6M-?-?-S-?" and it strips the hyphens and question marks, so then the "S" can be in any ? spot and it'll match...
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted