I think the index fields in the config ultimately get used in the UmbracoContentIndexer where they are used to get the property values out of the fields. This requires the field name to match a given property alias exactly, similar to how you use GetPropertyValue and have to pass in the correct alias.
I guess if you really wanted to perform wildcard matching you could write your own content indexer to achieve this. You would then have to swap this out in the Examine Settings. This might be a bit of an extreme solution however.
Agree, that sounds a bit extreme. Right now I have a couple of general search aliases declared in the index. Upon creating the properties one can ad these general aliases and they will be searchable without going into the index config and add the alias. I was just curious if these could be replaced so that all aliases ending with "Search" would be indexed right away.
Examine index user fields with wildcard names?
Hi,
Is it possible to add index user fields with wildcard names? Like this:
With this added would all properties with the alias ending with "Search" get indexed, or is this far fetched? :)
Best regards David
Hi,
I think the index fields in the config ultimately get used in the UmbracoContentIndexer where they are used to get the property values out of the fields. This requires the field name to match a given property alias exactly, similar to how you use GetPropertyValue and have to pass in the correct alias.
I guess if you really wanted to perform wildcard matching you could write your own content indexer to achieve this. You would then have to swap this out in the Examine Settings. This might be a bit of an extreme solution however.
Cheers,
Paul
Thanks Paul.
Agree, that sounds a bit extreme. Right now I have a couple of general search aliases declared in the index. Upon creating the properties one can ad these general aliases and they will be searchable without going into the index config and add the alias. I was just curious if these could be replaced so that all aliases ending with "Search" would be indexed right away.
Anyway, thank you for your time! David
is working on a reply...