I want to customize advanced search by adding other input.
I have already add input search on filename by adding:
filename =
JahiaTools.getStrParameter(request,"filename","");
if( !"".equals(filename)){
if ( advOptions.length()>0 ){
advOptions.append(" AND (");
} else {
advOptions.append("(");
}
advOptions.append(JahiaSearchConstant.FILE_NAME+":");
advOptions.append(filename);
advOptions.append(")");
}
if( !"".equals(filename)){
if ( advOptions.length()>0 ){
advOptions.append(" AND (");
} else {
advOptions.append("(");
}
advOptions.append(JahiaSearchConstant.FILE_NAME+":");
advOptions.append(filename);
advOptions.append(")");
}
I works fine
and now I want to add input serach on some custom fields
like 'directoryProjectName' or
'directoryProjectDescription'.
Thanks.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 November 2005 15:21
To: [email protected]
Subject: RE: jahia search field
Then, please, be more specific in describing your problem or your requirements.
It can be that you just need the container filter on a specific field but not the search.
Thanks.
Sergiy Shyrkov.
"BARREAU Amandine" <[EMAIL PROTECTED]> 23.11.2005 15:12
Please respond to
<[email protected]>
To<[email protected]> cc SubjectRE: jahia search field
OK but it doens't work.
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: 23 November 2005 14:43
To: [email protected]
Subject: Re: jahia search field
Hello,
you should perform a search of the form (without the quotation marks): 'fieldname:directoryProjectName'
Please note, that the keyword 'fieldname' must be in lowercase, whereas the name of the field. e.g. 'directoryProjectName' is case-insensitive
Kind regards.
Sergiy Shyrkov.
"BARREAU Amandine" <[EMAIL PROTECTED]> 23.11.2005 14:30
Please respond to
<[email protected]>
To<[email protected]> cc Subjectjahia search field
Hello, I want to search on folder name.
Here is the container definiton:
content:declareContainerList name='directoryProjectContainer' title="Project container">
<content:declareContainer>
<content:declareField name='directoryProjectName'
title="Folder name"
titleKey="folderName"
bundleKey="<%=resBundleID%>"
type="SmallText"
/>
<content:declareField name='directoryProjectDescription'
title="Description"
titleKey="description"
bundleKey="<%=resBundleID%>"
type="SmallText"
/>
<content:declareField name='directoryProjectPage'
title="Folder page"
titleKey="folderPage"
bundleKey="<%=resBundleID%>"
type="Page"
value="<jahia_linkonly>"
/>
</content:declareContainer>
</content:declareContainerList>
I tried: (FIELD_FIELDNAME:'directoryProjectName') AND (FIELD_VALUE:*)
but It doens' t work
can you help me?
