core icon indicating copy to clipboard operation
core copied to clipboard

Multiple Include/Exclude pathing not respected on Site Search indexation

Open DeanGonzalez opened this issue 13 years ago • 4 comments

To reproduce,

1) create unique content on the index pages of a few directories... I created on news-events, products, and services index pages... placing "fandango" in a piece of published content.

2) create a new site search with multiple exclude paths:

/news-events/, /products, /services/*

3) run and create new default index

4) using the Search tab on the default index.. search for the unique term. It seems that only the first path in the string of multiple paths is "Excluded" and the rest are not respected in the comma separated list

http://screencast.com/t/SG8D5wbt

DeanGonzalez avatar Dec 14 '12 22:12 DeanGonzalez

For me it doesn't work well with multiple includes either. If I try with /products/* for instance it works fine. If I try with /products/,/blog/,/news/* then nothing gets indexed. No errors on the log either.

mabouza avatar Dec 15 '12 02:12 mabouza

Try with returns between includes and excludes, one per line On 15 Dec 2012 03:07, "Maru Ahues Bouza" [email protected] wrote:

For me it doesn't work well with multiple includes either. If I try with /products/* for instance it works fine. If I try with /products/,/blog/,/news/* then nothing gets indexed. No errors on the log either.

— Reply to this email directly or view it on GitHubhttps://github.com/dotCMS/dotCMS/issues/1717#issuecomment-11398723.

dotcmsCodeReview avatar Dec 15 '12 16:12 dotcmsCodeReview

Adding carriage returns between include/exclude entries doesn't work. Removing any whitespace between the comma separated entries resolves the issue. (2.2.1).

ghost avatar Apr 04 '13 13:04 ghost

I think this was a duplicate of https://github.com/dotCMS/dotCMS/issues/2768

jtesser avatar Aug 05 '13 12:08 jtesser