Reputation: 123
I ingested large binary into MarkLogic using the content ingestion framework, leaving the binary files on the file system, and I used the transformation to extract metadata from the images into properties. When I search on this content using the search API it does not return facets. I believe that this happens because the fragment returned contains the pointer to the image on the file system and not the properties document. Is there any way around this? I'd like to created faceted navigation base upon the properties.
Upvotes: 1
Views: 231
Reputation: 136
If you take a look at the Search Developer's Guide for 5.0, section 2.2.6 talks about the fragment scope option that is new in 5.0, I think that will handle your case. There's an example in there showing how to create a facet on the last-modified property using a local fragment scope, and it sounds like that pattern might be what you're looking for.
Upvotes: 2
Reputation: 7842
If the search API doesn't handle this use-case, you could always call cts:element-values
and cts:frequency
yourself. You can still use search:parse
and search:resolve
to provide query parsing and basic search results.
Upvotes: 0