Filter search results for specific format

Options
crossroadsk
edited May 16, 2013 in Documentum #1

Hi,

I want to filter my advanced search results and display only results with pdf format.

Need help to customize this feature.

Thanks!

Comments

  • Alvaro_de_Andres
    edited May 16, 2013 #2
    Options

    I think you can do it by using a search hints file, filtering by format, without customization.

  • crossroadsk
    edited May 16, 2013 #3
    Options

    Thanks for the idea.

    After configuring hints file, I'm seeing the below error When performed search

    "The search has failed:
    - documentum : Problem with this source. View Messages for more details.
    "

    I added the line "dfc.dqlhints.file=dfc-dqlhints.xml" in dfc.properties

    Please check below dfc-dqlhints.xml for possible errors

    <?xml version="1.0"?>

    <RuleSet>

    <Rule>

    <Condition>

    <Where>a_content_type

    <Attribute operator="equal">pdf</Attribute>

    </Where>

    </Condition>

    </Rule>

    </RuleSet>

  • Alvaro_de_Andres
    edited May 16, 2013 #4
    Options

    I think you have to use the full path to the file in dfc.properties

  • crossroadsk
    edited May 16, 2013 #5
    Options

    I have updated the full path now and the above error is still getting displayed and also the message bar shows this "Query execution error for documentum: Unable to process query".

    There should be some problem with query in hints xml. Could you please help me fix it.

  • PanfilovAB
    edited May 16, 2013 #6
    Options

    It's a bit strange but the purpose of dql-hints file is adding dql hints to search queries, not conditions If you want add some additional conditions to queries you should modify advanced search component, read "Modifying the search component query" in Search Development Guide.