pub fn search_file_by_tags(
    tags: Vec<String>,
    current: u64,
    end_of_filter: u64,
) -> Result<(Vec<FileInfo>, u64)> {
    let mut start_pointer = current.clone();

    /// current time: 14:52  create index: upload file:     art.20201212.1452
    /// art.20201212.1350
    ///art.20201212.1410
    /// art.20201212.1423
    //art.20201212.1452

    /// 12.12.2020   art      75 minutes   current time: 15:37

    /// art.20201212.1537   load all   if result<50
    //// art.20201212.1536   load all  if result<50
    //// art.20201212.1535   load all  if result>50

    //current 1535   return reulst;

    ///   1- get all path    art.20201212      ///what does it mean,
    /// art.20201212   /// remail .

    /// 1- possibilities:
    //// 2 - slicing inside possibilities.
    /// 3 - consition, based on result and time distance
    // Start While:  result.lenght<= MAX_RESULT_IN_PAGE || start_pointer<=end_of_filter
    let result: Vec<String>;
    let path_date = "20201206".into(); // get YearMonthDay in this format YYYYMMDD based on the start_pointer
    let path_time = "1312".into(); // get time in this format HHMM based on the start_pointer

    for s in tags {
        // Gnerate TAGS: (format!("{}.{}.{}",s,path_date,path_time));
        // Query each Tag from DHT and push to result
    }
    start_pointer = STEP_IN_MIN;

    //  END While
    Ok((result, start_pointer))
}
// each page or step of search is X minute.
each page or step of search is X minute.
each page or step of search is X minute .
pub fn search_file_by_tags(
    tags: Vec<String>,
    current: u64,
    end_of_filter: u64,
) -> Result<(Vec<FileInfo>, u64)> {
    let mut start_pointer = current.clone();
    /// current time: 14:52  create index: upload file:     art.20201212.1452
    /// art.20201212.1350
    ///art.20201212.1410
    /// art.20201212.1423
    //art.20201212.1452
    /// 12.12.2020   art      75 minutes   current time: 15:37
    /// art.20201212.1537   load all   if result<50
    //// art.20201212.1536   load all  if result<50
    //// art.20201212.1535   load all  if result>50
    //current 1535   return reulst;
    ///   1- get all path    art.20201212      ///what does it mean,
    /// art.20201212   /// remail .
    /// 1- possibilities:
    //// 2 - slicing inside possibilities.
    /// 3 - consition, based on result and time distance
    // Start While:  result.lenght<= MAX_RESULT_IN_PAGE || start_pointer<=end_of_filter
    let result: Vec<String>;
    let path_date = "20201206".into(); // get YearMonthDay in this format YYYYMMDD based on the start_pointer
    let path_time = "1312".into(); // get time in this format HHMM based on the start_pointer
    for s in tags {
        // Gnerate TAGS: (format!("{}.{}.{}",s,path_date,path_time));
        // Query each Tag from DHT and push to result
    }
    start_pointer = STEP_IN_MIN;
    //  END While
    Ok((result, start_pointer))
}
pub fn search_file_by_tags ( tags : Vec < String > , current : u64 , end_of_filter : u64 , ) -> Result < ( Vec < FileInfo > , u64 ) > { let mut start_pointer = current . clone ( ) ; /// current time: 14:52  create index: upload file:     art.20201212.1452 /// art.20201212.1350 ///art.20201212.1410 /// art.20201212.1423 //art.20201212.1452 /// 12.12.2020   art      75 minutes   current time: 15:37 /// art.20201212.1537   load all   if result<50 //// art.20201212.1536   load all  if result<50 //// art.20201212.1535   load all  if result>50 //current 1535   return reulst; ///   1- get all path    art.20201212      ///what does it mean, /// art.20201212   /// remail . /// 1- possibilities: //// 2 - slicing inside possibilities. /// 3 - consition, based on result and time distance // Start While:  result.lenght<= MAX_RESULT_IN_PAGE || start_pointer<=end_of_filter let result : Vec < String > ; let path_date = " " . into ( ) ; // get YearMonthDay in this format YYYYMMDD based on the start_pointer let path_time = " " . into ( ) ; // get time in this format HHMM based on the start_pointer for s in tags { // Gnerate TAGS: (format!("{}.{}.{}",s,path_date,path_time)); // Query each Tag from DHT and push to result } start_pointer = STEP_IN_MIN ; //  END While Ok ( ( result , start_pointer ) ) }
each page or step of search is X minute.
each page or step of search is X minute .
tags
Vec<String>
current
u64
end_of_filter
u64