Sorting Results According to Criteria Selected for Relevance - Fluid Topics - 3.2

Understand Relevance in Fluid Topics

Product
Fluid Topics
FT_Version
3.2
Category
Technical Notes

To illustrate the sorting mechanisms involved in Fluid Topics, consider the following topics to be sorted:

Topic #1
{ 
  “id”: 1
  "title": "Darth Vader", 
  "abstract": “Darth Vader, also known as Anakin Skywalker. Originally a Jedi prophesied to bring 
  balance to the Force, he falls to the dark side of the Force and serves the evil Galactic Empire 
  at the right hand of his Sith master, Emperor Palpatine.”, 
  "book_origin_title": “Dark side members”
  “date”: “2016/03/01”
}
Topic #2
{ 
  “id”: 2
  "title": "Yoda", 
  "abstract": “Grand Jedi Master Yoda is among the oldest and most powerful known Jedi Masters in 
  the Star Wars universe. He trains Luke Skywalker to fight against the Galactic Empire.”, 
  "book_origin_title": “Light side members”
  “date”: “2015/04/13”
}
Topic #3
{ 
  “id”:  1
  "title": "Luke Skywalker", 
  "abstract": “Luke is an important figure in the Rebel Alliance's struggle against the Galactic 
  Empire. He is the twin brother of Rebellion leader Princess Leia Organa of Alderaan, a friend 
  of smuggler Han Solo, the son of fallen Jedi Anakin Skywalker and Queen of Naboo Padmé Amidala, 
  and an apprentice to Master Obi-Wan "Ben" Kenobi.”, 
  "book_origin_title": “Light side members”
  “date”: “2010/11/07”
}
The following example shows how these topics are ranked when the user types the query: "Jedi Master".
  Words FieldMatch Pathlen Weight Publication Title Revision Date
Topic #1 2 false 32 N/A N/A N/A
Topic #2 2 false 2 N/A N/A N/A
Topic #3 2 false 15 N/A N/A N/A
In this case, after analyzing the first three criteria, the Pathlen attribute is discriminating enough so that AFS knows how these topics must be ranked, i.e. sorted in ascending Pathlen:
  1. Topic #2
  2. Topic #3
  3. Topic #1
This second example shows how these topics are ranked when the user types the query: "Skywalker"
  Words FieldMatch Pathlen Weight Publication Title Revision Date
Topic #1 1 false 1 abstract Darth Vader N/A
Topic #2 1 false 1 abstract Yoda N/A
Topic #3 1 false 1 title and abstract N/A N/A
Here the Weight attribute favors Topic #3, and the ascending sort order of Publication_title, i.e. alphabetical order, displays Topic #1 before Topic #2:
  1. Topic #3
  2. Topic #1
  3. Topic #2