Help about Intersecting searchContextByPaths
Closed this issue · 1 comments
I have two folders, docs/myproduct and docs/myproduct/faq.
I want the first index to include the second folder but the second index not to include the first folder. So users can search the faq folder only, while still can search the entire docs.
When I have the following settings, the 'docs/myproduct/faq' index does include only the docs in docs/myproduct/faq. But the 'docs/myproduct' index does not include the docs in docs/myproduct/faq. Can index a include docs in a/b while a/b is itself a separate index? Thanks!
searchContextByPaths: [ 'docs/myproduct/faq', 'docs/myproduct']
According to the code, only the first matched path in searchContextByPaths will be used.
postBuildFactory.ts#L56
I did a PoC to allow a doc to be added to multiple indexes. Is it OK to support this feature? If so, I'll try to make a PR.