Examine search results: issue with hyphens?

Hi Guys!

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"/>

 

Can anyone help please?
Jenni
xx


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/34535-examine-search-results-issue-with-hyphens