#8030 Include title in search matches

unreleased
open
nobody
search (3)
General
nobody
2018-10-26
2015-12-08
No

Titles are not currently matched when searching. Tested with wiki pages and blog posts. It should have high relevancy too.

Discussion

  • Shalitha Suranga

    Hi.

    I checked this. In schema title is correctly defined <field name="title" type="text_general" indexed="true" stored="true" multiValued="true"/>

    stored and indexed are true means those can be displayed and indexed

    In solr query runner also it is not working. Not sure what is the problem

     
    • Shalitha Suranga

      Also in model it is correcty implemented

          def index(self):
              result = VersionedArtifact.index(self)
              result.update(
                  title=self.title , # Here -======
                  version_i=self.version,
                  type_s='WikiPage',
                  text=self.text)
              return result
      
       
      • Shalitha Suranga

        And noticed that if wiki page title is open source q=open will not give any results but q=title:open gives the result

         
      • Dave Brondsema

        Dave Brondsema - 2018-10-26

        Looks like indexing and field-based search is correct, and it is the default search behavior that needs to be tweaked to search on the "title" field and not just "text" field.

         

Log in to post a comment.