?
avatar bubi-luka
bubi-luka
27 Jul 2017

Steps to reproduce the issue

  1. Create custom field (i.e. type = editor, Title = Test field, ID = 1) <= Just for easier representation.
  2. Edit existing article or create new one.
  3. Insert the text into the created cusom field. Use unique content (Lorem ipsum: #Lorem ipsum dolor sit amet, consectetur adipiscing elit. Duis nisi ante, bibendum id posuere eu, vestibulum sit amet ex. Sed eu diam dui. Proin pulvinar vehicula sem in ullamcorper. Cras auctor mauris mauris, in dignissim orci venenatis eget. Cras tempor mollis lacus, at gravida augue auctor eu. Nam et mi.").
  4. Insert the field into the main content (I use only custom fields in the article ...).
  5. Save the article.
  6. Open front page / search page.
  7. Enter search term "dignissin" (or any other latin word entered before).
  8. Check the results.

Expected result

  • The search results should contain the article that we edited/created before.
  • The search results should display the Article title and the excerpt of the text, that contains the search keyword.
  • The search keyword in the excerpt should be displayed differently than the text (using class "highlight").

Actual result

  • The search results contains the article that we edited/created before.
  • The article title is displayed and in case the keyword is in the title it is styled correctly.
  • The excerpt of the text that is in the custom field is not shown.
  • There is no indication the searched keyword is in that article!

System information (as much as possible)

Taken from Joomla backend:
php: Linux Humulus 4.11.11-200.fc25.x86_64 #1 SMP Mon Jul 17 17:41:12 UTC 2017 x86_64
dbversion: 5.5.5-10.1.24-MariaDB
dbcollation: utf8mb4_unicode_ci
dbconnectioncollation: utf8mb4_unicode_ci
phpversion: 7.0.21
server: Apache/2.4.27 (Fedora) OpenSSL/1.0.2k-fips PHP/7.0.21
sapi_name: apache2handler
version: Joomla! 3.7.4 Stable [ Amani ] 25-July-2017 11:11 GMT
platform: Joomla Platform 13.1.0 Stable [ Curiosity ] 24-Apr-2013 00:00 GMT
useragent: Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:54.0) Gecko/20100101 Firefox/54.0

Additional comments

  • This is the case using the simple search.
  • When using smart search the results does not display empty text, but the shortcode of the custom field.
  • As I am a big fan of custom fields I am using them on the whole article. All the text is entered only in custom fields, the main text field is used only to display them on the front page. In that way the content is always presented in the consistent way and it is easy to change what and how every article is displayed. But the lack of search support is a show stopper. In my case I only get a title and no text excerpt.
  • I have discovered this issue after exploring significantly more bounced pageviews on search pages than before.
avatar bubi-luka bubi-luka - open - 27 Jul 2017
avatar joomla-cms-bot joomla-cms-bot - change - 27 Jul 2017
Labels Added: ?
avatar joomla-cms-bot joomla-cms-bot - labeled - 27 Jul 2017
avatar franz-wohlkoenig franz-wohlkoenig - change - 27 Jul 2017
Category com_fields Search
avatar brianteeman
brianteeman - comment - 27 Jul 2017

This is the expected behaviour (even if its not the desired behaviour). There is no searching of the fields.

@laoneo Care to expand on this answer

avatar franz-wohlkoenig franz-wohlkoenig - change - 28 Jul 2017
Status New Discussion
avatar laoneo
laoneo - comment - 28 Jul 2017

The issue is that HTML and the {} code get filtered out for the result. An event can be triggered but it will have a performance impact as every search result will run trough the content plugins. Don't know if we want that.

avatar bubi-luka
bubi-luka - comment - 28 Jul 2017

So the custom fields will always be second class citizens? If we suggest new type of field it is a no-go since nobody wants that, if we ask for equal display in search or on page it is no-go because of performance issues, if we ask about versions it is a no-go for whatever reason. I understand that Joomla! is a open source project and the developers and others do not get paid for working on it.

But it should not be like that. Custom fields are important since they help the authors to better structure the content and to display different information on different pages so we do not have to enter the same content on multiple articles in multiple categories just to get it display for a different purpose. Of course there is a performance impact. But why did you start implementing it if you did not want performance impact?

And perhaps the users are willing to exchange some server power for this feature? To implement it with on/of switch and let the users decide?


I am sorry for the tone of this text. I have full respect for your work you all do for this CMS. It is the result of the frustrations of waiting for such a long time for the custom fields feature and now seeing how it does not meet the high Joomla! standards.

avatar laoneo
laoneo - comment - 28 Jul 2017

Unsubscribed

avatar franz-wohlkoenig franz-wohlkoenig - change - 7 Nov 2017
Title
Search results with custom fields not displayed
[com_fields] Search results with custom fields not displayed
avatar joomla-cms-bot joomla-cms-bot - edited - 7 Nov 2017
avatar brianteeman brianteeman - labeled - 25 Mar 2018
avatar jwaisner jwaisner - change - 11 Mar 2020
Status Discussion Closed
Closed_Date 0000-00-00 00:00:00 2020-03-11 21:43:06
Closed_By jwaisner
avatar joomla-cms-bot joomla-cms-bot - change - 11 Mar 2020
Closed_By jwaisner joomla-cms-bot
avatar joomla-cms-bot joomla-cms-bot - close - 11 Mar 2020
avatar joomla-cms-bot joomla-cms-bot - unlabeled - 11 Mar 2020
avatar joomla-cms-bot
joomla-cms-bot - comment - 11 Mar 2020

Set to "closed" on behalf of @jwaisner by The JTracker Application at issues.joomla.org/joomla-cms/17294

avatar jwaisner
jwaisner - comment - 11 Mar 2020

This discussion has ran its course. Closing this due to lack of activity for many months.


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

Add a Comment

Login with GitHub to post a comment