cancel
Showing results for 
Search instead for 
Did you mean: 

lucene search for custom property value problem

tonc
Champ on-the-rise
Champ on-the-rise
Hi,

I am trying to create a lucene search query for searching the value of a custom property I made.
Let's say I have a customContentItem model that has a property customProperty. The property is of type d:text and has <index enabled="true" />. Also it has a list restriction on the value.

When I try to seach for a value in that property lucene never has any results although I know for sure there should be…
The part of my query for getting this property searched is @custom\:customProperty:"valuetosearchfor".
I also added the possibility to search on this property in the advanced search of the alfresco explorer and when I search for a value it also returns no results (while there should be).
Does anybody know why no results are returned?

Any help would be appreciated…

Greetings,
Toon
2 REPLIES 2

tonc
Champ on-the-rise
Champ on-the-rise
Never mind the question, I found the problem:
Apparently my definition of the property in my model wasn't correct even when there was no parse-error.
I used <index enabled="true"/> but now changed it to
<index enabled="true">
  <atomic>false</atomic>
  <stored>true</stored>
  <tokenised>false</tokenised>
</index>

This made it possible to search the property.

sunnrunner
Champ in-the-making
Champ in-the-making
tonc are you referring to these properties?


                <property name="i3b:batchFolder:queue">
                    <title>Queue</title>
                    <type>d:text</type>
                    <default>Unidentified</default>
                    <index enabled="true">
                        <atomic>true</atomic>
                        <stored>true</stored>
                        <tokenised>true</tokenised>
                    </index>
                </property>