我正在尝试使用下面的修补文件修补solr配置。但这似乎不起作用。
基本上,我正在尝试使用每个环境的我们自己的命名约定替换/覆盖默认核心。
有人可以在这里查看我在做什么错:
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<Sitecore>
<contentSearch>
<configuration>
<indexes hint="list:AddIndex">
<index id="sitecore_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<patch:attribute param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
<param desc="rebuildcore">"siteA_dev_$(id)_swap"</param>
</index>
<index id="sitecore_core_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_analytics_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_testing_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_suggested_test_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_fxm_master_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_fxm_web_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="sitecore_list_index" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider">
<param desc="core">"siteA_dev_$(id)"</param>
</index>
<index id="social_messages_master" type="Sitecore.ContentSearch.SolrProvider.SolrSearchIndex, Sitecore.ContentSearch.SolrProvider"> …Run Code Online (Sandbox Code Playgroud) 我正在为TDE创建一个POC,以便在我们的SQL Azure DB上实现安全性.
在测试期间,我不确定TDE究竟做了什么,但在下面找到了:
您仍然可以针对数据库运行SQL脚本并仍然获得结果(未加密).
web.config连接字符串不需要更改.我得到了结果,而不必修改连接字符串.
验证TDE是否开启的唯一方法是转到Azure门户?
有人可以验证我上面的调查结果吗?我不确定我是否正确行事.还不确定我的理解是否正确.
如果是这样,它是如何安全的?
我正在尝试为上下文项目获取所有祖先的解决方案.一种选择是将_path存储在索引中,其他选项与下面的选项类似:http: //www.glass.lu/Blog/GettingAncestors
我没有运气,让解决方案适用于上述(玻璃映射器)解决方案.
我得到了索引解决方案,但我想避免使用索引来获取_path(祖先的集合),因为我们没有任何其他要求使用索引,例如搜索等.
感谢是否有人可以共享工作解决方案的代码段,如果Glassmapper已经包含上述博客解决方案,则会更好.
有谁可以请问我在下面的情景中做错了什么?
我有一堆document.getElementById语句,我想转换为JQuery each循环.有些原因它没有用,请看下面我的jquery:
$('.select').each(function () {
$(this).addEventListener('touchstart', function (e) {
e.stopPropagation();
}, false);
});
Run Code Online (Sandbox Code Playgroud)
在nustshell中,我试图附加addEventListner所有select元素.
我对MessageContract Attribute在WCF中的工作原理感到困惑.
当我放置MessageContract时,代理显示两个参数而不是1.例如
GetResultResponse GetOperation(GetResultRequest request)
[MessageContract]
public class GetResultRequest
{
[MessageHeader]
public Header Header { get; set; }
[MessageBodyMember]
public List<Person> PersonList { get; set; }
}
Run Code Online (Sandbox Code Playgroud)
代理生成此方法签名:
GetOperation(ref Header, List<Person> personList)
Run Code Online (Sandbox Code Playgroud)
当我删除MEssageContract属性时:代理生成正确的签名:
GetOperation(GetResultRequest request)
Run Code Online (Sandbox Code Playgroud)
有人可以确认这是否是预期的行为?
我正在尝试从C#List生成XML文档.xml文档必须遵守第三方XML Schema.
我已经看过XSD2CODE工具,但没有得到任何结果.
有人可以帮我解决如何使用LINQ to xml生成XML文件并使用MVC3返回XML文件.
我是Sitecore WCM的新手,并且一直在进行大量的研究和阅读.有人可以帮我澄清一下Sitecore的以下基础知识吗?
- 我有很多ASP.net Web应用程序.如果我将项目转换为Sitecore项目,它会神奇地工作吗?
- 如果我想创建新网站,我是否需要在IIS中手动创建新网站,或者我发布时Sitecore会这样做吗?
- 是否有任何在线培训视频,找不到一个(Sitecore营销演示除外).
- 如果我们有MVC和Web表单应用程序,是否可以迁移到Sitecore?
安静的新Sitecore因此这个基本问题开始...
我已经启动并运行了MVC Sitecore项目.但是,我想在web.config文件的AppSetting上包含一些简单的配置值.从我读到的内容来看,乱用Sitecore配置文件并不是一个好习惯.
任何人都可以建议在appsettings上增加关键价值的最佳做法吗?
它应该在app_config下吗?
如果是,那么我应该使用哪个文件夹和命名约定?
新手到sitecore.有人可以帮我理解下面的元素是如何工作的吗?并且,我需要什么样的场景来更新它.
<sites>
<site name="shell" virtualFolder="/sitecore/shell" physicalFolder="/sitecore/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" loginPage="/sitecore/login" content="master" contentStartItem="/Home" enableWorkflow="true" enableAnalytics="false" analyticsDefinitions="content" xmlControlPage="/sitecore/shell/default.aspx" browserTitle="Sitecore" htmlCacheSize="2MB" registryCacheSize="3MB" viewStateCacheSize="200KB" xslCacheSize="5MB" disableBrowserCaching="true"/>
<site name="login" virtualFolder="/sitecore/login" physicalFolder="/sitecore/login" enableAnalytics="false" database="core" domain="sitecore" disableXmlControls="true"/>
<site name="admin" virtualFolder="/sitecore/admin" physicalFolder="/sitecore/admin" enableAnalytics="false" enableWorkflow="true" domain="sitecore" loginPage="/sitecore/admin/login.aspx"/>
<site name="service" virtualFolder="/sitecore/service" physicalFolder="/sitecore/service"/>
<site name="modules_shell" virtualFolder="/sitecore modules/shell" physicalFolder="/sitecore modules/shell" rootPath="/sitecore/content" startItem="/home" language="en" database="core" domain="sitecore" content="master" enableAnalytics="false" enableWorkflow="true"/>
<site name="modules_website" virtualFolder="/sitecore modules/web" physicalFolder="/sitecore modules/web" rootPath="/sitecore/content" startItem="/home" language="en" database="web" domain="extranet" allowDebug="true" cacheHtml="true"/>
<site name="website" virtualFolder="/" physicalFolder="/" rootPath="/sitecore/content" startItem="/home" database="web" domain="extranet" allowDebug="true" …Run Code Online (Sandbox Code Playgroud) 我尝试按照以下MSDN文章包含一个任务:http: //msdn.microsoft.com/en-us/library/windowsazure/jj154098.aspx
但是我在其中一个实例上得到了以下错误;
回收(等待角色启动...应用程序启动任务失败,退出代码为1. [2013-04-13T11:03:22Z])
有人可以建议真正发生的事情,如果有的话会有什么问题?
下面是我的cmd:
@echo off
@echo Installing "IPv4 Address and Domain Restrictions" feature
%windir%\System32\ServerManagerCmd.exe -install Web-IP-Security
@echo Unlocking configuration for "IPv4 Address and Domain Restrictions" feature
%windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security
Run Code Online (Sandbox Code Playgroud)
和CSDF:
<Startup>
<Task commandLine="Startup.cmd" executionContext="elevated"/>
<Task commandLine="startup\startup.cmd" executionContext="elevated"/>
</Startup>
Run Code Online (Sandbox Code Playgroud)
谢谢
sitecore ×5
sitecore6 ×3
azure ×2
sitecore8 ×2
asp.net-mvc ×1
glass-mapper ×1
jquery ×1
linq-to-xml ×1
solr ×1
sql-server ×1
tde ×1
wcf ×1