cancel
Showing results for 
Search instead for 
Did you mean: 

Custom Simple Search properties

simonj
Champ in-the-making
Champ in-the-making
Hello,
Is there a way to search for a specific propertie in the simple search bar?
I created a custom model with some properties and I would like to search for one of those properties without the system looking elsewhere.
Example:
If I have a list of documents with a propertie called documentNumber I would like to put something like this in the search bar :
documentNumber:0912 and the system would return me only the documents witch has 0912 as a document number.
I dont want the system to look for the number 0912 elsewhere like in the title or in the document.

Thanks
2 REPLIES 2

pmverma
Champ in-the-making
Champ in-the-making
Hi Simonj,
I think it is not possible to search by filtering for specific properties in simple search. Because what you like to do is something like the behavior of using in Node Browser which options is not in simple search. I am not sure if there is an implementation of lucene query in your simple search to what you like to filter and do.

P. M. Verma

simonj
Champ in-the-making
Champ in-the-making
ok so I'm thinking of an other approch.
Is it possible to filter the rows that I dont want when displaying the data after the search :


<%– Content list –%>
<a:richList id="contentRichList" binding="#{BrowseBean.contentRichList}" viewMode="#{BrowseBean.browseViewMode}" pageSize="#{BrowseBean.pageSizeContent}"
styleClass="recordSet" headerStyleClass="recordSetHeader" rowStyleClass="recordSetRow" altRowStyleClass="recordSetRowAlt" width="100%"
value="#{BrowseBean.content}" var="r">

<c:if test="${r['sc:lot'] == 'L-442'}">



</c:if>


I tried something like this but it dont seem to work.