Wednesday 30 December 2009 5:19:48 pm
Hi Bertrand, Thanks for your reply. First, is "Mingxing test" the full string you are looking for, or is it partial ? >>"Mingxing Test" is the full string as the folder name. Then, out of curiosity, could you try url encoding the string, or at least replace the space with %20 ? >> I did try, but failed. would youl like to look at the message below which was got by debug: 'Filter' =>
<b>array</b>
0 => string 'folder/name:Mingxing%20Test'
'fq' =>
<b>array</b>
0 => string '( ((meta_installation_id_s:e8ba26d71fa1af8d15cbe4c687f17b44 AND (( ( meta_section_id_si:1 OR meta_section_id_si:3 )) OR ( ( meta_contentclass_id_si:4 OR meta_contentclass_id_si:44 OR meta_contentclass_id_si:45 OR meta_contentclass_id_si:48 )))) ) AND ( meta_language_code_s:eng-AU ) ) AND meta_is_invisible_b:false' <i>(length=315)</i>
1 => string 'meta_contentclass_id_si:1' <i>(length=25)</i>
2 => string 'meta_language_code_s:eng-AU' <i>(length=27)</i>
3 => string '( meta_contentclass_id_si:1 AND attr_name_s:Mingxing%20Test )' <i>(length=62)</i>
If I remove the whitespace, it works well. And there is an example in the document of ezfind: Example:
fetch( ezfind, search,
hash( query, 'eZ Systems',
filter, array( 'car/in_stock:1',
'car/make:Alfa Romeo',
'car/model:8C' ) ) )
Returns: Result with documents containing the words “ez” and “systems”, attribute “car/in_stock” with a value of “1”, the “car/make” attribute with the value “alfa romeo” and the “car/model” attribute with the value “8c”. Let me know what is your opinion. Many thanks.
Shinetech is the leader in next generation global application outsourcing. Shinetech combines world class technical skills, recognized expertise in advanced development methodologies and industry experience to deliver results for global enterprises. Shinetech utilizes distributed Agile methods for rapid and precise systems development.
------------------------------------------------------------------------------------------
Blog: http://www.mingxing.me
Email: chenmx@shinetechchina.com
|