1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Display results as threads - Fail

Discussion in 'Enhanced Search Support' started by lightbox, May 17, 2014.

  1. lightbox

    lightbox Active Member

    Hi, I'm a happy elasticsearch user but we do experience a nasty issue.

    As soon as we use the enhanced search options to search with "Display results as threads" checkbox ticked, we only get 1 thread (actually thread #1 from 14 years ago) as a result.

    I've spent 2 hours reading and searching for a solution to no avail, so I'm kindly asking for help.
    It's kind of strange because the above does work on xenforo.com but on www.tutorials.de it won't work. Any suggestions?

    Cheers
    Martin

    PS: Here's our current mapping
    Code:
     "mappings":{
    
      "thread":{
      "_source":{"enabled":false},
      "properties":{
      "date":{"type":"long","store":true},
      "discussion_id":{"type":"long","store":true},
      "message":{"type":"string"},
      "node":{"type":"long"},
      "prefix":{"type":"long"},
      "thread":{"type":"long"},
      "title":{"type":"string"},
      "user":{"type":"long","store":true}
      }
      },
    
      "resource_update":{
      "_source":{"enabled":false},
      "properties":{
      "date":{"type":"long","store":true},
      "discussion_id":{"type":"long","store":true},
      "is_resource":{"type":"long"},
      "message":{"type":"string"},
      "rescat":{"type":"long"},
      "resource":{"type":"long"},
      "title":{"type":"string"},
      "user":{"type":"long","store":true}
      }
      },
    
      "post":{
      "_source":{"enabled":false},
      "properties":{
      "date":{"type":"long","store":true},
      "discussion_id":{"type":"long","store":true},
      "message":{"type":"string"},
      "node":{"type":"long"},
      "prefix":{"type":"long"},
      "thread":{"type":"long"},
      "title":{"type":"string"},
      "user":{"type":"long","store":true}
      }
      },
    
      "profile_post":{
      "_source":{"enabled":false},
      "properties":{
      "date":{"type":"long","store":true},
      "discussion_id":{"type":"long","store":true},
      "message":{"type":"string"},
      "profile_user":{"type":"long"},
      "title":{"type":"string"},
      "user":{"type":"long","store":true}
      }
      },
    
      "page":{
      "_source":{"enabled":false},
      "properties":{
      "date":{"type":"long","store":true},
      "discussion_id":{"type":"long","store":true},
      "message":{"type":"string"},
      "title":{"type":"string"},
      "user":{"type":"long","store":true}
      }
      }
      }
    
     
  2. BamaStangGuy

    BamaStangGuy Well-Known Member

    Have you tried the latest Beta?
     
  3. lightbox

    lightbox Active Member

    No, not yet. Don't like to try beta software on a live site. ;)
    But I don't think they are using the beta here on xenforo.com either and the problem doesn't exist here.
     
  4. RoldanLT

    RoldanLT Well-Known Member

    I'm using it on my Live Forum without any problems.
     
  5. BamaStangGuy

    BamaStangGuy Well-Known Member

    They are using the Beta here. ;)
     
  6. Mike

    Mike XenForo Developer Staff Member

    Elasticsearch changed its data structures (in 1.0 or 1.1 I think), so I think you're using a version that's hit by that. I don't recall off hand whether it was fixed on our end in the latest XFES 1.0 release or as part of the 1.1 beta, but it should be sorted now.

    (Annoyingly, elasticsearch breaks backwards compatibility quite a lot.)
     
  7. lightbox

    lightbox Active Member

    Thanks Mike for chiming in. :)
    I'll wait patiently for the release version of the AddOn update ... so far no user has noticed this problem (or at least reported it).

    Cheers,
    Martin
     

Share This Page