More in this section

Forums / Developing with Sitefinity / Custom Search (metaFields)

Custom Search (metaFields)

11 posts, 0 answered
  1. Jackson
    Jackson avatar
    51 posts
    Registered:
    23 May 2008
    16 Jul 2008
    Link to this post
    I have extended the events module to produce a module for rental houses.  I want to give the ability to search the rentals for different metaFields.  For example, I have a meta Field for bedrooms and for bathrooms and for price.

    I want to have a search box where they can select requirements and then recieve a list that match.

    Any help?
  2. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    19 Jul 2008
    Link to this post
    Hi Chris,

    It's a complicated solution as categorized search by metafields or tags is not implemented yet.
    Probably building a IndexProvider for this module can help for creating indexes organized by metaFields.
    We'll need some more time to research the possibility of a simple implementation.

    We'll let you know if any ideas or suggestions came up.

    All the best,
    Nikola
    the Telerik team

    Instantly find answers to your questions at the new Telerik Support Center
  3. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    08 Oct 2008
    Link to this post
    Hi Chris Morrow,

    This is just a follow up to inform you that we have implemented the required by you functionality in Sitefinity 3.5. The search will be able to index all meta fields in the Generic Content based modules. You can use the searching for your needs.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  4. Jackson
    Jackson avatar
    51 posts
    Registered:
    23 May 2008
    16 Oct 2008
    Link to this post
    Is there any documentation on how to achieve this? Thanks.
  5. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    20 Oct 2008
    Link to this post
    Hello Chris Morrow,

    Using MetaFields defined in the web.config for Generic Content based modules is new in the Sitefinity 3.5 release and it's not documented yet.

    If you're using News module, for example, you can define additional fields in the web.config <metaFields> section and all metafields with attribute searchable="True" will be indexed along with the main news item content.
    Including those fields inside the fieldsInfoProvider.xml, will allow you to set weight for that fields and also will instruct the indexer to store it as a separate index document field. This will allow performing search for a term in a single field.

    As you're using the Events module, we can prepare a sample for you, on how to implement indexing provider for the Events module. We can create such sample by the end of the next week.

    Any additional information about your Events module usage would be at great help. Thanks!

    Best wishes,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  6. Jackson
    Jackson avatar
    51 posts
    Registered:
    23 May 2008
    20 Oct 2008
    Link to this post
    Yes, I am using the events module. A sample would be great. 

    Basically I just am using the events module with some extra meta fields, these are all set as searchable.

    Some of the fields are, Bedrooms, bathrooms, RentAmount, AvailableDate, etc.

    I would just like the availiblility to search for a house that fits the users exact needs.  So like, having at least 2 bedrooms, 2 bathrooms, all under $875 a month.  So there would basically a search on multiple fields.
  7. Nikola
    Nikola avatar
    51 posts
    Registered:
    24 Sep 2012
    20 Oct 2008
    Link to this post
    Hello Chris Morrow,

    Thank you for the provided information.

    We'll create a sample next week and we'll let you know when it's ready.

    All the best,
    Nikola
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  8. Jackson
    Jackson avatar
    51 posts
    Registered:
    23 May 2008
    14 Nov 2008
    Link to this post
    Hello, I just wanted to see if you guys have any samples for this functionallity.  Another thing I am needing to achieve is to figure how to have a search where it can display articles that are from different providers in different detail pages.  Any information you can give me would be great.
  9. Georgi
    Georgi avatar
    3583 posts
    Registered:
    28 Oct 2016
    18 Nov 2008
    Link to this post
    Hello Chris Morrow,

    We are still not ready with the example, but we have scheduled it to enter in our Developers Manual.

    Best wishes,
    Georgi
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  10. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
    23 Jan 2009
    Link to this post
    where is the documentation for building a custom index provider?
  11. SelAromDotNet
    SelAromDotNet avatar
    912 posts
    Registered:
    18 Jul 2012
Register for webinar
11 posts, 0 answered