RE: jahia search field

"BARREAU Amandine" <[email protected]>
Newsgroups gmane.comp.cms.jahia.template
Message-ID <7F2AAB834036BC48AB9C27DD9EC30BBE15E9E2@EPLUXSEX02.ep.parl.union.eu>
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(")");
  
  }
 
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
Subject
RE: 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
Subject
jahia 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?
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.