?
avatar oorzaak
oorzaak
30 Sep 2015

Steps to reproduce the issue

In Content > Categories, create a category structure with titles like this:

Root

  • Category 1
  • - News items
  • - Blog items
  • Category 2
  • - News items
  • - Blog items

Create some dummy articles in all categories.
Activate smart search and make sure that the contents is indexed.

Then in Components > Smart Search > Filters, try to create a filter that limits smart search to this category:

Category 1 > Blog items

Expected result

As with all functionality in Joomla where categories are involved, I would expect to see that all categories are listed individually, even if they have the same title. This may be visualised in different ways but in the end each category has it's own id so the title doesn't really matter.

Actual result

When trying to create a search filter based on categories, with the category structure as shown above, the categories are listed as:

  • Blog items
  • Category 1
  • News items
  • Category 2

When checking "Blog items" in the filter definition, a search action returns articles from both Category 1 > Blog items and Category 2 > Blog items.

System information (as much as possible)

J.3.4.4

Additional comments

You might argue that categories should never have identical names. Yet I never before encountered a situation in Joomla where this was a problem. I think that a category structure like this one is perfectly normal from the users' point of view.

It seems to me that the smart search indexing system regards the category as just another chunk of contents, rather than taking into account the special nature of the categories system.

Votes

# of Users Experiencing Issue
2/2
Average Importance Score
3.00

avatar oorzaak oorzaak - open - 30 Sep 2015
avatar oorzaak
oorzaak - comment - 30 Sep 2015

Sorry, the list markup of my dummy category structure is a bit messed up. Hope the idea is still clear.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7988.

avatar MartijnMaandag
MartijnMaandag - comment - 10 Oct 2015

Yes this is a problem.
When you have a category strucrure: cars and motorbikes, with BMW in both, smartsearch makes no difference between BMW in the cars and the motorbikes.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7988.

avatar zero-24 zero-24 - change - 10 Oct 2015
Status New Confirmed
avatar chrisdavenport
chrisdavenport - comment - 8 May 2016

This is a known issue, but apart from ensuring that your category names are aways unique, I don't think there is a solution. We could artificially add something to the category name in the index but that would also appear in the user interface. There are also scenarios where the current behaviour is actually desired, which would make it difficult to achieve a fix without breaking backwards-compatibility.

I'm closing this issue at the present time. If code (or a specific proposal for how to resolve the issue) is provided, it can always be re-examined. Thanks for reporting the problem.


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/7988.

avatar chrisdavenport chrisdavenport - change - 8 May 2016
Status Confirmed Closed
Closed_Date 0000-00-00 00:00:00 2016-05-08 10:27:23
Closed_By chrisdavenport
avatar chrisdavenport
chrisdavenport - comment - 8 May 2016
avatar joomla-cms-bot joomla-cms-bot - close - 8 May 2016
avatar panopt
panopt - comment - 4 Apr 2017

"It works badly, but at least we know it".
Why did you close the bug?

FREE IS NOT CHEAP !

Add a Comment

Login with GitHub to post a comment