Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
haskell-gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
191
Issues
191
List
Board
Labels
Milestones
Merge Requests
8
Merge Requests
8
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
haskell-gargantext
Commits
6cc5cf44
Commit
6cc5cf44
authored
Aug 25, 2025
by
Alfredo Di Napoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small code review amendment
parent
7ffa286c
Pipeline
#7826
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Ngrams.hs
src/Gargantext/API/Ngrams.hs
+2
-2
No files found.
src/Gargantext/API/Ngrams.hs
View file @
6cc5cf44
...
...
@@ -434,7 +434,7 @@ matchingNode :: Maybe ListType
->
(
NgramsTerm
->
Bool
)
->
Tree
NgramsElement
->
Bool
matchingNode
listType
minSize
maxSize
search
Query
(
Node
inputNode
children
)
=
matchingNode
listType
minSize
maxSize
search
Fn
(
Node
inputNode
children
)
=
let
nodeSize
=
inputNode
^.
ne_size
matchesListType
=
maybe
(
const
True
)
(
==
)
listType
respectsMinSize
=
maybe
(
const
True
)
((
<=
)
.
getMinSize
)
minSize
...
...
@@ -443,7 +443,7 @@ matchingNode listType minSize maxSize searchQuery (Node inputNode children) =
in
respectsMinSize
nodeSize
&&
respectsMaxSize
nodeSize
-- Search for the query either in the root or in the children.
&&
(
search
Query
(
inputNode
^.
ne_ngrams
)
||
any
(
matchingNode
listType
minSize
maxSize
searchQuery
)
children
)
&&
(
search
Fn
(
inputNode
^.
ne_ngrams
)
||
any
(
matchingNode
listType
minSize
maxSize
searchFn
)
children
)
&&
matchesListType
(
inputNode
^.
ne_list
)
-- | Version of 'buildForest' specialised over the 'NgramsElement' as the values of the tree.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment