Developer forum

Forum » Development » Search by product custom field - setting up

Search by product custom field - setting up

Dmitrij Jazel
Reply

Hi guys,

We have ERP system, that is going to send us products once per day.

Those products might/might not contain new custom fields. That we will have to create "on the fly" as those are controlled by the ERP users (we will have a separate sync routine for that metadata about custom fields).

Now what we need is "to tell searching" what custom field should be searchable and what is not, based on that metadata we received. We would have to do this step in API.

 

And is there any place in DW (or DW DB) that you could tell/manage what field is searchable or not?

 

/Dmitrij

 


Replies

 
Nicolai Høeg Pedersen
Reply

What part of the UI are you in?

If you are using the new indexed search, the configuration of the search is in a XML file and therefore easy to manipulate. In weighted search, old indexed search and EcomQuery search, you cannot define which fields to search.

BR Nicolai

 
Dmitrij Jazel
Reply

Hi Nicolai, this is great info! :-)

That is also a question to you guys, if you had any recomendations on what should we use. We are currently planning this.

And since as you are saying EcomQuery search we can't define which fields to search, than we are not going to use it in this project for sure. I think there is no other option here...

So - we are going with new Indexed search, where can I find that XML file? :)

Is it OK plan to - programatically change XML file (according to metadata) every night, and than run index build, so that it would be possible to search for phrase in those new fields aswell?

 

/Dmitrij

 

 
Nicolai Høeg Pedersen
Reply

Hi Dmitrij

Yes, you should from now on always use the new indexing. It is not a problem to change the XML - as long as you do not fuck it up :-).

You can find the XML in \Files\System\Repositories\{NameOfYourRepo} folder. See how contents would look like in the attachment.

The .query files can be changed to search these new fields.

You may have to change the .index file to include your new custom field to be included (would normally happen automatically if  you use the Ecommercer Schema Extender)

Find the docs in the documentation section under downloads - there is a PDF.

BR Nicolai

Capture.PNG

 

You must be logged in to post in the forum