How to index and use the new content pickers and MNTP
Hi,
I am using the new MNTP to work as tags for my document type and I want to implement a filter functionality based on these tags. There can be multiple filters in the search query. I have been looking at the index and I see that the MNTP stores values as umb://document/xxxxxxxx . Whats the best way to store and query the index in this case to achieve filtering?
How does it store multiple values as a csv list? I would look at may be using gathering node data and then either create a new field and get the values. if they are csv then split on string. Then I would look at extracting out the guids from the urls and storing those as space separated list.
On you page with tags you can get the guid of the tag and then search on that?
It's a good point you have here im going to update my examine course notes.
I was going to do just what you said but I wanted to make sure that what I do is right as the entire site is more or less examine powered. I ll let you know how it goes.
How to index and use the new content pickers and MNTP
Hi,
I am using the new MNTP to work as tags for my document type and I want to implement a filter functionality based on these tags. There can be multiple filters in the search query. I have been looking at the index and I see that the MNTP stores values as umb://document/xxxxxxxx . Whats the best way to store and query the index in this case to achieve filtering?
Poornima
Poornima,
How does it store multiple values as a csv list? I would look at may be using gathering node data and then either create a new field and get the values. if they are csv then split on string. Then I would look at extracting out the guids from the urls and storing those as space separated list.
On you page with tags you can get the guid of the tag and then search on that?
It's a good point you have here im going to update my examine course notes.
Regards
Ismail
Hi Ismail,
I was going to do just what you said but I wanted to make sure that what I do is right as the entire site is more or less examine powered. I ll let you know how it goes.
Poornima
Hi Ismail,
Sorry for delayed response. This is what I finally got to.
I also wanted to ask you one more thing. Is it a good practice to further select from search results using LINQ once I have the search results?
Poornima
Poornima,
Try and avoid using extra linq statements at end use the examine itself to filter as it will be much quicker.
Regards
Ismail
Hi Ismail,
What I wanted to to was get the search results and I am interested in particular fields from the set.
say for eg i need to get a list of document types "xyz". from that list I need all fields of type "abc".
Poornima
is working on a reply...