<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Search Service Docker Version in Alfresco Forum</title>
    <link>https://connect.hyland.com/t5/alfresco-forum/search-service-docker-version/m-p/144884#M38437</link>
    <description>&lt;P&gt;Try enabling "exact term search":&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-services/latest/config/indexing/#exact-term-search" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/search-services/latest/config/indexing/#exact-term-search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This configuration change requires indexing the repository again from scratch.&lt;/P&gt;</description>
    <pubDate>Mon, 27 Mar 2023 14:43:31 GMT</pubDate>
    <dc:creator>angelborroy</dc:creator>
    <dc:date>2023-03-27T14:43:31Z</dc:date>
    <item>
      <title>Search Service Docker Version</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-service-docker-version/m-p/144883#M38436</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have upgraded alfresco version from Community 5.2 (zip version) to community 7.3.1 (Docker version). I have migrated database.&lt;/P&gt;&lt;P&gt;My searchService method doesn't find documents with customized metadata but it works with alfresco metadata (ex:cm:created) But it works from Share interface.&lt;/P&gt;&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2023-03-26_21-06-23.png" style="width: 999px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image"&gt;&lt;img src="https://connect.hyland.com/t5/image/serverpage/image-id/1653i9A5506D9CE563210/image-size/large?v=v2&amp;amp;px=999" role="button" title="image" alt="image" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;This is my code:&lt;/P&gt;&lt;PRE&gt;	public List&amp;lt;Map&amp;lt;String, Object&amp;gt;&amp;gt; searchDocuments(String idaipatient, String medecin, String typologie, String nomService,
			String documentDateRangeStart, String documentDateRangeEnd, String integrationDateRangeStart, String integrationDateRangeEnd, String origine) {
		
		ResultSet rs = null;
		List&amp;lt;Map&amp;lt;String, Object&amp;gt;&amp;gt; finalResult = new ArrayList&amp;lt;Map&amp;lt;String, Object&amp;gt;&amp;gt;();
		try {

			Map&amp;lt;String, Object&amp;gt; results = new HashMap&amp;lt;String, Object&amp;gt;();
			Map&amp;lt;String, Object&amp;gt; resultObject = new HashMap&amp;lt;String, Object&amp;gt;();
			String query = "TYPE:\"os:documed" + "\" "
					+ "AND @os\\:idPatient:\"" + idaipatient + "\" "
					+ "AND @os\\:medName:\"" + medecin + "\" "
					+ "AND @os\\:typologie:\"" + typologie + "\" "
					+ "AND @os\\:nomService:\"" + nomService + "\" "
					+ "AND @cm\\:created:[\"" + integrationDateRangeStart + "\" TO \"" + integrationDateRangeEnd + "\"] "
					+ "AND @os\\:docDate:[\"" + documentDateRangeStart + "\" TO \"" + documentDateRangeEnd + "\"] "
					+ "AND @os\\:origine:\"" + origine + "\" ";
			logger.debug("Query : " + query);
	
			StoreRef storeRef = new StoreRef(StoreRef.PROTOCOL_WORKSPACE, "SpacesStore");
			rs = searchService.query(storeRef, SearchService.LANGUAGE_LUCENE, query);
					
			if (rs.length() == 0) {
				logger.debug("Aucun résultat pour la recherche " + query);
				// initialisation Json retour
				resultObject.put("properties", initProperties());
				results.put("item", resultObject);
				results.put("nodeRef", "");
				finalResult.add(results);
			} else {
				logger.debug(rs.length() + " document(s) trouvé(s) pour la recherche " + query);
				/* Récupération et mise en forme des résultats */
				for (NodeRef item : rs.getNodeRefs()) {
					results = new HashMap&amp;lt;String, Object&amp;gt;();
					resultObject = new HashMap&amp;lt;String, Object&amp;gt;();		
					resultObject.put("properties", getProperties(item));
					results.put("item", resultObject);
					results.put("nodeRef", item.getId());
					
					finalResult.add(results);
				}
			}
		} catch (Exception e) {
			logger.debug("Erreur Recherche documents: {}", ExceptionUtils.getStackTrace(e));
			finalResult = new ArrayList&amp;lt;Map&amp;lt;String, Object&amp;gt;&amp;gt;();
			
		} finally {
			rs.close();
		}	
		return finalResult;
	}&lt;/PRE&gt;&lt;P&gt;How can I solve that ?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 10:13:17 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-service-docker-version/m-p/144883#M38436</guid>
      <dc:creator>anakin98000</dc:creator>
      <dc:date>2023-03-27T10:13:17Z</dc:date>
    </item>
    <item>
      <title>Re: Search Service Docker Version</title>
      <link>https://connect.hyland.com/t5/alfresco-forum/search-service-docker-version/m-p/144884#M38437</link>
      <description>&lt;P&gt;Try enabling "exact term search":&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.alfresco.com/search-services/latest/config/indexing/#exact-term-search" target="_blank" rel="nofollow noopener noreferrer"&gt;https://docs.alfresco.com/search-services/latest/config/indexing/#exact-term-search&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;This configuration change requires indexing the repository again from scratch.&lt;/P&gt;</description>
      <pubDate>Mon, 27 Mar 2023 14:43:31 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-forum/search-service-docker-version/m-p/144884#M38437</guid>
      <dc:creator>angelborroy</dc:creator>
      <dc:date>2023-03-27T14:43:31Z</dc:date>
    </item>
  </channel>
</rss>

