Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Tomáš Trávníček
doctrine-dbal
Commits
76bd8b76
Commit
76bd8b76
authored
Oct 16, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added more stopwords to analyzer
parent
e10acab8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Standard.php
lib/Doctrine/Search/Analyzer/Standard.php
+5
-2
No files found.
lib/Doctrine/Search/Analyzer/Standard.php
View file @
76bd8b76
...
@@ -51,6 +51,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
...
@@ -51,6 +51,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
'almost'
,
'almost'
,
'along'
,
'along'
,
'also'
,
'also'
,
'although'
,
'amp'
,
'amp'
,
'an'
,
'an'
,
'and'
,
'and'
,
...
@@ -66,6 +67,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
...
@@ -66,6 +67,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
'be'
,
'be'
,
'because'
,
'because'
,
'been'
,
'been'
,
'before'
,
'being'
,
'being'
,
'best'
,
'best'
,
'better'
,
'better'
,
...
@@ -99,6 +101,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
...
@@ -99,6 +101,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
'easily'
,
'easily'
,
'easy'
,
'easy'
,
'edition'
,
'edition'
,
'either'
,
'end'
,
'end'
,
'enough'
,
'enough'
,
'even'
,
'even'
,
...
@@ -266,7 +269,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
...
@@ -266,7 +269,7 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
public
function
analyze
(
$text
)
public
function
analyze
(
$text
)
{
{
$text
=
preg_replace
(
'/[
.()&#!,?^£@%&{}
+]/'
,
' '
,
$text
);
$text
=
preg_replace
(
'/[
^A-Za-z0-9
]/'
,
' '
,
$text
);
$text
=
str_replace
(
' '
,
' '
,
$text
);
$text
=
str_replace
(
' '
,
' '
,
$text
);
$terms
=
explode
(
' '
,
$text
);
$terms
=
explode
(
' '
,
$text
);
...
@@ -288,4 +291,4 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
...
@@ -288,4 +291,4 @@ class Doctrine_Search_Analyzer_Standard implements Doctrine_Search_Analyzer_Inte
}
}
return
$ret
;
return
$ret
;
}
}
}
}
\ No newline at end of file
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