Nucleo Risultati WebPart - Errore recuperate Proprietà e FAST
-
16-10-2019 - |
Domanda
Sto avendo un problema strano che sto cercando di capire e risolvere.
Sono provisionning attraverso una funzione di una pagina personalizzata risultati della ricerca (e un layout di pagina, pagina master, file css e foglio di stile XSLT). Quando i risultati di base webpart appare sulla pagina, si verifica questo errore:
"non immobile non esiste o è utilizzato in maniera incoerente con le impostazioni dello schema".
Finché Io uso solo un'istanza di questo webpart sulla pagina, gli errori è sempre visualizzata. Ma al momento in cui aggiungo una nuova risultati fondamentali webpart (esattamente lo stesso di quello provisionned), i nuovi si lavora, ma la prima non fa ancora lavoro. Posso poi mettere la prima in lavori modalità e tutto nascosto.
Che cosa sta succedendo?
Ho cercato di verificare con il pagina dei risultati di default, e non succede con la pagina OOTB.
Non sto usando colonne personalizzate, quindi non capisco perché questo errore è quello indicato. I registri hanno assolutamente nulla relative a tale ...
Qualcuno ha idea di dove è il problema?
Modifica
Non provato provisionning il webpart con funzione e aggiungendo solo attraverso l'interfaccia utente caricandolo, e aveva lo stesso comportamento esatto.
EDIT 2:
Ecco il mio contenuto del modulo:
<?xml version="1.0" encoding="utf-8"?>
<Elements xmlns="http://schemas.microsoft.com/sharepoint/">
<Module Name="SiteFiles" Url="Pages" Path="SiteFiles">
<File Url="Results.aspx" IgnoreIfAlreadyExists="TRUE" Type="GhostableInLibrary">
<AllUsersWebPart WebPartOrder="0" WebPartZoneID="TopZone">
<![CDATA[
<webParts>
<webPart xmlns="http://schemas.microsoft.com/WebPart/v3">
<metaData>
<type name="Microsoft.Office.Server.Search.WebControls.CoreResultsWebPart, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" />
<importErrorMessage>Cannot import this Web Part.</importErrorMessage>
</metaData>
<data>
<properties>
<property name="SpellcheckingMode" type="Microsoft.Office.Server.Search.Query.SpellcheckMode, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Suggest</property>
<property name="MissingAssembly" type="string">Cannot import this Web Part.</property>
<property name="AllowConnect" type="bool">False</property>
<property name="HelpMode" type="helpmode">Modeless</property>
<property name="CharactersInUrl" type="int">90</property>
<property name="ShowLangPicker" type="bool">True</property>
<property name="DisplayName" type="string" />
<property name="MoreLinkUrl" type="string" null="true" />
<property name="Title" type="string">Search Core Results</property>
<property name="ShowActionLinks" type="bool">False</property>
<property name="ViewFlag" type="string">0</property>
<property name="QueryNumber" type="Microsoft.Office.Server.Search.WebControls.QueryId, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Query1</property>
<property name="PreviewWindowSize" type="string">160</property>
<property name="DateFormat" type="Microsoft.SharePoint.Utilities.SPDateFormat, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">DateOnly</property>
<property name="AllowClose" type="bool">True</property>
<property name="SentencesInSummary" type="System.Int16, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">3</property>
<property name="HighestResultPage" type="System.Int16, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">1000</property>
<property name="CacheXslTimeOut" type="int">86400</property>
<property name="RelevanceView" type="bool">False</property>
<property name="MoreLinkLabel" type="string">View more results »</property>
<property name="ManualRefresh" type="bool">False</property>
<property name="ListUrl" type="string" null="true" />
<property name="FixedQuery" type="string" />
<property name="CacheXslStorage" type="bool">True</property>
<property name="ResubmitFlag" type="Microsoft.Office.Server.Search.Query.ResubmitFlag, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">NoResubmit</property>
<property name="XslLink" type="string" null="true" />
<property name="EnableStemming" type="bool">False</property>
<property name="ShowSearchResults" type="bool">True</property>
<property name="AllowMinimize" type="bool">True</property>
<property name="AllowHide" type="bool">True</property>
<property name="ShowMoreLink" type="bool">False</property>
<property name="ListDisplayName" type="string" null="true" />
<property name="ChromeType" type="chrometype">None</property>
<property name="EnableDocumentPreviewPowerPoint" type="bool">True</property>
<property name="DefaultRankingModelID" type="string" />
<property name="CatalogIconImageUrl" type="string" />
<property name="Default" type="string" />
<property name="DisplayRSSLink" type="bool">False</property>
<property name="FireInitialRow" type="bool">True</property>
<property name="TotalNumberDocumentPreview" type="string">10</property>
<property name="DateView" type="bool">False</property>
<property name="ViewFlags" type="Microsoft.SharePoint.SPViewFlags, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">None</property>
<property name="DisplayAlertMeLink" type="bool">False</property>
<property name="DataSourceID" type="string" />
<property name="HelpUrl" type="string" />
<property name="DisplayDiscoveredDefinition" type="bool">True</property>
<property name="AppendedQuery" type="string" />
<property name="AsyncRefresh" type="bool">False</property>
<property name="IgnoreNoise" type="bool">True</property>
<property name="Height" type="string" />
<property name="PageSize" type="int">-1</property>
<property name="UseSQLDataSourcePaging" type="bool">True</property>
<property name="AllowEdit" type="bool">True</property>
<property name="ViewContentTypeId" type="string" />
<property name="Hidden" type="bool">False</property>
<property name="DefaultSort" type="Microsoft.Office.Server.Search.WebControls.ResultsView, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Relevance</property>
<property name="ExportMode" type="exportmode">All</property>
<property name="ConcurrentNumberDocumentPreview" type="string">10</property>
<property name="ListName" type="string" />
<property name="PropertiesToRetrieve" type="string"><Columns> <Column Name="WorkId"/> <Column Name="Rank"/> <Column Name="Title"/> <Column Name="Author"/> <Column Name="Size"/> <Column Name="Path"/> <Column Name="Description"/> <Column Name="Write"/> <Column Name="SiteName"/> <Column Name="CollapsingStatus"/> <Column Name="HitHighlightedSummary"/> <Column Name="HitHighlightedProperties"/> <Column Name="ContentClass"/> <Column Name="IsDocument"/> <Column Name="PictureThumbnailURL"/> <Column Name="PopularSocialTags"/> <Column Name="PictureWidth"/> <Column Name="PictureHeight"/> <Column Name="DatePictureTaken"/> <Column Name="ServerRedirectedURL"/> </Columns></property>
<property name="ParameterBindings" type="string" null="true" />
<property name="DataSourcesString" type="string" />
<property name="EnablePhonetic" type="bool">False</property>
<property name="ListId" type="System.Guid, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">00000000-0000-0000-0000-000000000000</property>
<property name="Scope" type="string" />
<property name="XmlDefinitionLink" type="string" />
<property name="DataFields" type="string" />
<property name="ShowMessages" type="bool">False</property>
<property name="Width" type="string" />
<property name="InitialAsyncDataFetch" type="bool">False</property>
<property name="QuerySideLanguage" type="string">-1</property>
<property name="MoreResultsLink" type="string" null="true" />
<property name="XmlDefinition" type="string" />
<property name="ChromeState" type="chromestate">Normal</property>
<property name="PageType" type="Microsoft.SharePoint.PAGETYPE, Microsoft.SharePoint, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">PAGE_NORMALVIEW</property>
<property name="ScopeID" type="int">1</property>
<property name="SelectColumns" type="string"><Columns> <Column Name="WorkId"/> <Column Name="Rank"/> <Column Name="Title"/> <Column Name="Author"/> <Column Name="Size"/> <Column Name="Path"/> <Column Name="Description"/> <Column Name="Write"/> <Column Name="SiteName"/> <Column Name="CollapsingStatus"/> <Column Name="HitHighlightedSummary"/> <Column Name="HitHighlightedProperties"/> <Column Name="ContentClass"/> <Column Name="IsDocument"/> <Column Name="PictureThumbnailURL"/> <Column Name="PopularSocialTags"/> <Column Name="PictureWidth"/> <Column Name="PictureHeight"/> <Column Name="DatePictureTaken"/> <Column Name="ServerRedirectedURL"/> </Columns></property>
<property name="SampleData" type="string"><All_Results> <Result> <workid>1</workid> <rank>222</rank> <title>Title of document or web page</title> <author>Author of document or web page</author> <size>1025</size> <sitename>http://www.sample.com</sitename> <url>http://www.sample.com/folder/document.aspx</url> <imageurl>/_layouts/images/aspx16.gif</imageurl> <description>This is the summary of the document or web page. The summary is generated from the original document based on matches with query terms. In some cases, the summary is a description provided by the author.</description> <write>December 26, 2004</write> </Result></All_Results></property>
<property name="EnableDocumentPreviewWord" type="bool">True</property>
<property name="AutoRefreshInterval" type="int">60</property>
<property name="CharactersInSummary" type="int">185</property>
<property name="TitleUrl" type="string" />
<property name="RemoveDuplicates" type="bool">True</property>
<property name="Xsl" type="string" />
<property name="View" type="Microsoft.Office.Server.Search.WebControls.ResultsView, Microsoft.Office.Server.Search, Version=14.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c">Relevance</property>
<property name="TitleIconImageUrl" type="string" />
<property name="EnableSimilarFind" type="bool">False</property>
<property name="Direction" type="direction">NotSet</property>
<property name="AllowZoneChange" type="bool">True</property>
<property name="ResultsPerPage" type="System.Int16, mscorlib, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">10</property>
<property name="ShowWithSampleData" type="bool">False</property>
<property name="Description" type="string">Displays the search results and the properties associated with them.</property>
<property name="EnableNicknames" type="bool">False</property>
<property name="AutoRefresh" type="bool">False</property>
<property name="IsLocationPeople" type="bool">False</property>
<property name="Location" type="string">LocalSearchIndex</property>
<property name="NoDefaultStyle" type="string" null="true" />
<property name="ShowWindowsSearch" type="bool">True</property>
<property name="UseLocationVisualization" type="bool">False</property>
<property name="MoreResultsText" type="string">View more results »</property>
</properties>
</data>
</webPart>
</webParts>
]]>
</AllUsersWebPart>
</File>
</Module>
</Elements>
Soluzione
Come stai sommando i risultati della ricerca di base sulla pagina? Mi chiedo se si popolato la proprietà "Colonne selezionate", se viene lasciato vuoto o ha dati non validi.
Altri suggerimenti
Si prega di esportare entrambe le definizioni WebPart (o usare il provisioning uno ed esportare quella di lavoro) e confrontarli con WinMerge. Scommetto che v'è una certa differenza di esso.
Provare a usare solo le proprietà che è necessario impostare. Se si esporta la parte web, si ottiene tutte le proprietà assegnate alla parte web - anche i valori di default. Ho definito solo seguenti proprietà nella mia parte web e funziona abbastanza bene:
<property name="Title" type="string">$Resources:Microsoft.Office.Server.Search,SearchActionsWP_Title;</property>
<property name="Description" type="string">$Resources:Microsoft.Office.Server.Search,SearchActionsWP_Desc;</property>
<property name="ChromeType">None</property>
<property name="AllowMinimize" type="bool">true</property>
<property name="AllowClose" type="bool">true</property>
<property name="Hidden" type="bool">false</property>
<property name="ShowMessages" type="bool">false</property>
<property name="ShowSearchResults" type="bool">false</property>
<property name="uselocationvisualization" type="bool">false</property>
<property name="Location" type="string">LocalSearchIndex</property>