Merge pull request #4810 from sbwalker/dev

make indexing of Files opt-in rather than opt-out
This commit is contained in:
Shaun Walker 2024-11-08 15:16:45 -05:00 committed by GitHub
commit c745e85706
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 4 additions and 4 deletions

View File

@ -63,7 +63,7 @@
private string _enabled = "True"; private string _enabled = "True";
private string _lastIndexedOn = ""; private string _lastIndexedOn = "";
private string _ignorePages = ""; private string _ignorePages = "";
private string _ignoreEntities = ""; private string _ignoreEntities = "File";
private string _minimumWordLength = "3"; private string _minimumWordLength = "3";
private string _ignoreWords = "the,be,to,of,and,a,i,in,that,have,it,for,not,on,with,he,as,you,do,at,this,but,his,by,from,they,we,say,her,she,or,an,will,my,one,all,would,there,their,what,so,up,out,if,about,who,get,which,go,me,when,make,can,like,time,no,just,him,know,take,people,into,year,your,good,some,could,them,see,other,than,then,now,look,only,come,its,over,think,also,back,after,use,two,how,our,work,first,well,way,even,new,want,because,any,these,give,day,most,us"; private string _ignoreWords = "the,be,to,of,and,a,i,in,that,have,it,for,not,on,with,he,as,you,do,at,this,but,his,by,from,they,we,say,her,she,or,an,will,my,one,all,would,there,their,what,so,up,out,if,about,who,get,which,go,me,when,make,can,like,time,no,just,him,know,take,people,into,year,your,good,some,could,them,see,other,than,then,now,look,only,come,its,over,think,also,back,after,use,two,how,our,work,first,well,way,even,new,want,because,any,these,give,day,most,us";

View File

@ -139,7 +139,7 @@
<value>Ignore Entities: </value> <value>Ignore Entities: </value>
</data> </data>
<data name="IgnoreEntities.HelpText" xml:space="preserve"> <data name="IgnoreEntities.HelpText" xml:space="preserve">
<value>Comma delimited list of entities which should be ignored</value> <value>Comma delimited list of entities which should be ignored. By default File entities are ignored.</value>
</data> </data>
<data name="MinimumWordLength.Text" xml:space="preserve"> <data name="MinimumWordLength.Text" xml:space="preserve">
<value>Word Length: </value> <value>Word Length: </value>
@ -154,7 +154,7 @@
<value>Comma delimited list of words which should be ignored</value> <value>Comma delimited list of words which should be ignored</value>
</data> </data>
<data name="Success.Save" xml:space="preserve"> <data name="Success.Save" xml:space="preserve">
<value>Search Settings Saved Successfully</value> <value>Search Settings Saved Successfully. You Will Need Reindex For Your Changes To Be Reflected In The Search Results.</value>
</data> </data>
<data name="Error.Save" xml:space="preserve"> <data name="Error.Save" xml:space="preserve">
<value>Error Saving Search Settings</value> <value>Error Saving Search Settings</value>

View File

@ -67,7 +67,7 @@ namespace Oqtane.Infrastructure
} }
var ignorePages = siteSettings.GetValue(SearchIgnorePagesSetting, "").Split(','); var ignorePages = siteSettings.GetValue(SearchIgnorePagesSetting, "").Split(',');
var ignoreEntities = siteSettings.GetValue(SearchIgnoreEntitiesSetting, "").Split(','); var ignoreEntities = siteSettings.GetValue(SearchIgnoreEntitiesSetting, "File").Split(',');
var pages = pageRepository.GetPages(site.SiteId); var pages = pageRepository.GetPages(site.SiteId);
var pageModules = pageModuleRepository.GetPageModules(site.SiteId); var pageModules = pageModuleRepository.GetPageModules(site.SiteId);