cancel
Showing results for 
Search instead for 
Did you mean: 

Lucene search by exact phrase doesn't work

jservajean
Confirmed Champ
Confirmed Champ
My content model is configured out of the box, so the cm:name property is set to be both tokenized and indexed as a whole string :

<index enabled="true">
   <atomic>true</atomic>
   <stored>false</stored>
   <tokenised>both</tokenised>
</index>


When adding a new file containing spaces, such as "PS-200 Total Acces.doc", I can't find the file when searching by exact phrase "PS-200 Total Acces.doc" :

@cm\:name:"PS-200 Total Acces.doc" // returns nothing
@cm\:name:"PS-200" // return all the files starting or containing "PS-200", including "PS-200 Total Acces.doc"


My index seems to be corrupted or out of sync. But I don't know out to diagnose that properly.

Is there a way to reindex a single node (ideally without updating it) ?
What logger should I configure in log4j to keep track of the indexing process (atomic or not) ?

Thanks
3 REPLIES 3

openpj
Elite Collaborator
Elite Collaborator
<blockquote>Is there a way to reindex a single node (ideally without updating it) ?</blockquote>
Yes, you have an indexing console that allows you to reindex a specific node or a range of nodes:
http://localhost:8080/alfresco/service/enterprise/admin/indexcheck

<blockquote>What logger should I configure in log4j to keep track of the indexing process (atomic or not) ?</blockquote>
You should set the package of the subsystem that you are using to manage indexes.
If you are using Lucene I think that you should set the following:

log4j.logger.org.alfresco.repo.search.Indexer=debug


Please remember to override the log4j.properties using the custom-log4j.properties in the shared classloader of your application server, in this way you don't need to change your Alfresco war package.

Hope this helps.

Yes it helps, disapointely these index webscripts don't work on a community edition of alfresco.
Anyway, thx for sharing.

openpj
Elite Collaborator
Elite Collaborator
<blockquote>Is there a way to reindex a single node (ideally without updating it) ?</blockquote>
Yes, you have an indexing console that allows you to reindex a specific node or a range of nodes:
http://localhost:8080/alfresco/service/enterprise/admin/indexcheck

<blockquote>What logger should I configure in log4j to keep track of the indexing process (atomic or not) ?</blockquote>
You should set the package of the subsystem that you are using to manage indexes.
If you are using Lucene I think that you should set the following:

log4j.logger.org.alfresco.repo.search.Indexer=debug


Please remember to override the log4j.properties using the custom-log4j.properties in the shared classloader of your application server, in this way you don't need to change your Alfresco war package.

Hope this helps.