<?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 Use of indexes in a query (with SOLR) in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289531#M242661</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have a doubt about how indexed properties works in Alfresco 4.1.6 with SOLR.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use something like this for my queries:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;SearchParameters sp = new SearchParameters();&lt;BR /&gt;sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);&lt;BR /&gt;sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO);&lt;BR /&gt;sp.setQuery(query);&lt;BR /&gt;ResultSet results = getSearchService().query(sp);&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;where query variable is something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&lt;BR /&gt;PATH:" /app:company_home/app:user_homes/cm:_x0030_123//*" AND ((@cm\:title:food) OR (@cm\:name:abcde) OR (TEXT:valles) OR (@doc\:custom_property:"report") OR (@doc\:custom_property2:"report") AND (@doc\:custom_property3:"report") AND TYPE:"{my.model}voc_document"&lt;BR /&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;On my model.xml I specify what custom properties are indexed (&lt;/SPAN&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;&amp;lt;index enabled="true"&amp;gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;SPAN&gt;) &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I use Alfresco 4.1.6 with SOLR. My question is… How works SOLR with the indexes if I put on the search query two or more indexed properties? Like Oracle? Oracle try the best index and use only this. Or maybe SOLR combine all the indexed properties and uses all the index on the query?&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I need this answer to determine how many indexes put on my model.xml. Maybe put a lot of indexes don't give me the best and efficient result and is better index only a few properties. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;And finally, one question… I use SearchService.LANGUAGE_FTS_ALFRESCO, but I can see that exists a earchService.LANGUAGE_SOLR_FTS_ALFRESCO. Is the same? I need to use the second if I use SOLR?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks a lot!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 06 Jul 2015 14:01:09 GMT</pubDate>
    <dc:creator>spilby</dc:creator>
    <dc:date>2015-07-06T14:01:09Z</dc:date>
    <item>
      <title>Use of indexes in a query (with SOLR)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289531#M242661</link>
      <description>I have a doubt about how indexed properties works in Alfresco 4.1.6 with SOLR.I use something like this for my queries&lt;IMG id="smileyfrustrated" class="emoticon emoticon-smileyfrustrated" src="https://migration33.stage.lithium.com/i/smilies/16x16_smiley-frustrated.png" alt="Smiley Frustrated" title="Smiley Frustrated" /&gt;earchParameters sp = new SearchParameters();sp.addStore(StoreRef.STORE_REF_WORKSPACE_SPACESSTORE);sp.setLanguage(SearchService.LANGUAGE_FTS_ALFRESCO);sp.setQuery(query);ResultSet r</description>
      <pubDate>Mon, 06 Jul 2015 14:01:09 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289531#M242661</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2015-07-06T14:01:09Z</dc:date>
    </item>
    <item>
      <title>Re: Use of indexes in a query (with SOLR)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289532#M242662</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SOLR4 is very good at indexing properties.&amp;nbsp; Don't worry about it.&amp;nbsp;&amp;nbsp; And don't think of them as oracle indexes.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Jul 2015 15:40:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289532#M242662</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-07-06T15:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use of indexes in a query (with SOLR)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289533#M242663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Ok, but… I imagine is not the same declare a lot of index on the model, or a few. Maybe exceed number of indexs affect negatively the performance. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What's your recommendation? Index all the properties that I use on the search queries, and make queries with ANDs and multiple indexes? Or only works with few indexes and use one by query? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 07:11:05 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289533#M242663</guid>
      <dc:creator>spilby</dc:creator>
      <dc:date>2015-07-07T07:11:05Z</dc:date>
    </item>
    <item>
      <title>Re: Use of indexes in a query (with SOLR)</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289534#M242664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Let SOLR do the work.&amp;nbsp; Its very good!&amp;nbsp;&amp;nbsp; Probably much better than trying to code it yourself.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Jul 2015 10:39:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/use-of-indexes-in-a-query-with-solr/m-p/289534#M242664</guid>
      <dc:creator>mrogers</dc:creator>
      <dc:date>2015-07-07T10:39:30Z</dc:date>
    </item>
  </channel>
</rss>

