• 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

lightbox

Active member
#1
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}
  }
  }
  }
 

lightbox

Active member
#3
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.
 

Mike

XenForo developer
Staff member
#6
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.)
 

lightbox

Active member
#7
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