From 818074f626e47fd4899ac81dc728120de568e258 Mon Sep 17 00:00:00 2001 From: Rok Garbas Date: Mon, 10 Aug 2020 14:55:56 +0200 Subject: [PATCH] add longDescription to the list of fields we search over (#146) fixed #134 --- src/Page/Packages.elm | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/Page/Packages.elm b/src/Page/Packages.elm index 30ee687..f4ec5e0 100644 --- a/src/Page/Packages.elm +++ b/src/Page/Packages.elm @@ -414,10 +414,10 @@ makeRequest options channel queryRaw from size sort = ) ] ) - [ ( "package_attr_name", 1 ) - , ( "package_attr_name_query", 1 ) - , ( "package_pname", 1 ) - , ( "package_description", 1 ) + [ ( "package_attr_name", 5 ) + , ( "package_attr_name_query", 3 ) + , ( "package_pname", 4 ) + , ( "package_description", 2 ) , ( "package_longDescription", 1 ) ] @@ -466,9 +466,9 @@ makeRequest options channel queryRaw from size sort = ) ] ) - [ ( "package_attr_name", 1 ) - , ( "package_attr_name_query", 1 ) - , ( "package_pname", 1 ) + [ ( "package_attr_name", 3 ) + , ( "package_attr_name_query", 2 ) + , ( "package_pname", 4 ) , ( "package_attr_set", 1 ) ] @@ -492,9 +492,9 @@ makeRequest options channel queryRaw from size sort = ) ] ) - [ ( "package_attr_name", 1 ) + [ ( "package_attr_name", 2 ) , ( "package_attr_name_query", 1 ) - , ( "package_pname", 1 ) + , ( "package_pname", 3 ) ] should_queries = @@ -514,6 +514,7 @@ makeRequest options channel queryRaw from size sort = [ "package_attr_name_query" , "package_pname" , "package_description" + , "package_longDescription" ] should_queries )