This commit is contained in:
nikk gitanes
2023-02-18 23:23:11 +03:00
parent ec4deb8afe
commit 7822157ff2
22 changed files with 62 additions and 69 deletions

View File

@@ -6,12 +6,13 @@ import (
"fmt"
"os"
"path/filepath"
"server/rutor/models"
"testing"
"server/rutor/models"
)
func TestParseChannel(t *testing.T) {
var channel = make(chan *models.TorrentDetails, 0)
channel := make(chan *models.TorrentDetails, 0)
var ftors []*models.TorrentDetails
go func() {
for torr := range channel {

View File

@@ -3,21 +3,23 @@ package rutor
import (
"compress/flate"
"encoding/json"
"github.com/agnivade/levenshtein"
"io"
"net/http"
"os"
"path/filepath"
"sort"
"strconv"
"strings"
"time"
"github.com/agnivade/levenshtein"
"server/log"
"server/rutor/models"
"server/rutor/torrsearch"
"server/rutor/utils"
"server/settings"
utils2 "server/torr/utils"
"sort"
"strconv"
"strings"
"time"
)
var (

View File

@@ -18,6 +18,6 @@ func analyze(text string) []string {
tokens := tokenize(text)
tokens = lowercaseFilter(tokens)
tokens = stopwordFilter(tokens)
//tokens = stemmerFilter(tokens)
// tokens = stemmerFilter(tokens)
return tokens
}