ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

advances search, exclude certain field content

September 03, 2012 7:30am

Subscribe [1]
  • #1 / Sep 03, 2012 7:30am

    Visual

    14 posts

    I have imported over 1000 entries from an xml file into different fields.

    now i have advanced search that search through all the fields.

    i want to exclude a matrix field with a specific product entry like so

    search:products_category="=not 414|413"}

    but that doesn’t seem to work
    is there any other way i can exclude field:products_category with input 414 and 413 ?

  • #2 / Sep 05, 2012 2:38am

    Visual

    14 posts

    nothing?

  • #3 / Sep 05, 2012 12:45pm

    Dan Decker

    7338 posts

    Hi Visual,

    nothing?

    I feel your frustration and I apologize for your wait! Your original post was on a US Business holiday. We do our best to respond within 48hrs. Sometimes it takes us a bit longer after a 3 day weekend 😊

    What context are you uising the search parameter? If you are using it in a channel entries tag, it won’t work as you expect. The search paramater is only avaibale on a few field types, and Matrix is not one of them.

    However, after having a quick look at the Matrix Docs, it appears the search parameter is availble within the Matrix field tag pair.

    ~

  • #4 / Sep 06, 2012 3:11am

    Visual

    14 posts

    The project need to finish asap, so i’m in need of a lot of attention 😊
    I hope you enjoyed the holiday 😊

    I was wondering if it is possible in anyway for the current code to work

    {exp:search:advanced_form result_page="search" no_result_page="search/noresultss" dynamic=“no” search_in="everywhere" search:productgroep_nl="not 411|414|413"}

    I know it’s possible to exclude a ‘category’ but I’m not sure how to exclude specific value from a matrix field from the results page.

    I assume it should be first processed from the input field before the results are even displayed?

  • #5 / Sep 07, 2012 3:37pm

    Dan Decker

    7338 posts

    Hi Visual,

    The native search module doesn’t work like that.

    The most control can be had using The Advance Search Form. The parameters you are using are only available on the Simple Search form,

    search_in="everywhere"


    or aren’t parameters at all:

    dynamic=“no”... search:productgroep_nl="not 411|414|413"

    Let me know if you have any questions!

    Cheers,

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases