Search function doesn't search the actual questions body contents

Issue #14 closed
Adrian Danker created an issue

The search functionality only appears to search for text in the following fields: * Question Title * Answer/Comment text body

Request: As a user of the QA plugin, I want the search functionality to look for text in the Questions page body. This is because, the Question Title is meant to be a shortened summary of the issue, but the real description is in the page contents.

Comments (19)

  1. Andreas Purde repo owner

    Dear Adrian,

    the implemented search uses Confluence search which also searches the body of the question not just the title. Do you have an example in which it does not work?

    Kind regards

    Andreas

  2. Adrian Danker reporter

    Yes, that was my understanding as well. However, it doesn't appear to be working.

    See this first image, which shows two questions added. 2017-11-29_11-31-33.png

    You can see in the Question description it has the text "Simple QA plugin".

    You can see in the next image, that I have searched for the text "plugin" and it is returning me no results. 2017-11-29_11-33-53.png

    I know searching against the Question Title and Answer body text work, as I tested both of those.

    Thanks for the quick response!

  3. Andreas Purde repo owner

    Dear Adrian,

    I just double checked that the search of the body is working as well - it does.

    Could you please check the following for me:

    1. Can you try whether your question pages are findable searching for "plugin" using the normal Confluence search box.
    2. Do you get a different result searching for "documented" in the Simple QA search field?

    In case you find the pages with test 1. and test 2. also does not find them please do the following:

    1. Enable debug logging for class de.edrup.confluence.plugins.SimpleQAHelper
    2. Perform the search for "plugin" and send me the relevant log entries (I'm hunting for the error message "Could not find page for result:" and the debug messages "Found xxx relevant pages" and "After rendering xxx pages left.").

    Thank you.

    Andreas

  4. Andreas Purde repo owner

    Dear Adrian,

    I found a potential source of the problem. Would you mind testing it again in version 1.6.2 from the download section here?

    Thank you and kind regards

    Andreas

  5. Adrian Danker reporter

    Good morning Andreas,

    I tested the normal Confluence search and it does find the question searching for something in the description.

    I don't have direct access to install the latest version. I'll have to ask our administrators to do it.

    Will let you know.

    Thank you!

  6. Adrian Danker reporter

    Hi Andreas,

    Our team updated the plugin to version 1.6.2, however, the search issue is still a problem.

  7. Adrian Danker reporter

    You can see here, I did a search using the main confluence search, and it finds the page if I search for contents in the Question page description.

    2017-11-30_10-10-42.png

  8. Andreas Purde repo owner

    Dear Adrian,

    sorry I didn't realize that you already tested it in the newer version and was waiting for your feedback.

    I'm afraid we have to move forward with looking into the logs. I have created a version with much more intense logging in the debug level. I need your help with the following steps:

    1. Download and install version 1.6.3 from the download section.
    2. Set the logging level for de.edrup.confluence.plugins.SimpleQAHelper to debug. Here is described how this can be achieved.
    3. Perform your search for plugin and send me the relevant log entries. The relvant log entries should look something like this:
    2017-12-02 08:14:05,290 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Search for Sophie returned 3 hits in the space.
    2017-12-02 08:14:05,292 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Single search result: type: custom; determined page title: 
    2017-12-02 08:14:05,293 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Single search result: type: comment; determined page title: My colleagues can't access my page
    2017-12-02 08:14:05,294 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Single search result: type: page; determined page title: Was soll der Hund da?
    2017-12-02 08:14:05,294 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Collecting the relevant pages finished at 48 ms.
    2017-12-02 08:14:05,297 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Found 2 relevant pages.
    2017-12-02 08:14:05,299 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Rendering with 1 subsets.
    2017-12-02 08:14:05,311 DEBUG [pool-29-thread-2] [edrup.confluence.plugins.SimpleQAHelper] renderSubset Preparing the subset took 11 ms.
    2017-12-02 08:14:05,314 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview After rendering 2 pages left.
    2017-12-02 08:14:05,321 DEBUG [http-nio-8090-exec-3] [edrup.confluence.plugins.SimpleQAHelper] getSimpleQAOverview Getting the rendered overview finished at 75 ms.
    

    I'm sorry that I need to involve you that much but as was not able to reproduce the error in any of my installations that's the only way.

    Thank you and kind regards

    Andreas

  9. Andreas Purde repo owner

    Can you please also tell me your Confluence version so that I can continue try reproducing it on my side. Thank you.

  10. Adrian Danker reporter

    Hey @andreas , sorry missed that question last time.

    We are on version 7.4.2.

    Thanks

  11. Andreas Purde repo owner

    Dear Adrian

    I assume you mean 6.4.2?

    Are you able to provide the debug messages?

    Kind regards

    Andreas

  12. Andreas Purde repo owner

    Dear Adrian,

    I just installed a fresh 6.2.1 and tested it again with no issues. I'm afraid you have to help me by providing the relevant log entries.

    Kind regards

    Andreas

  13. Adrian Danker reporter

    Hi Andreas,

    Unfortunately I don't have access to those logs. Will continue to investigate from our side as well then. Could just be that the search didn't fully re-index or something...

  14. Andreas Purde repo owner

    Dear Adrian,

    just a question of interest. Did you solve the problem or did you stop trying?

    Kind regards

    Andreas

  15. Andreas Purde repo owner

    In version 1.10.0 we changed the search engine to CQL. In case there ever was an issue with the old sort engine it should be gone with the change.

  16. Log in to comment