Developer forum

Forum » Ecommerce - Standard features » Repository query : expressions empty

Repository query : expressions empty

Gaetan Di Caro
Reply

Hi everyone,

 

I created an index containing my products for a new solution (based on wrap), and now i want to create a query, to be used for product search. However I have a problem, when I try to add an expression to the query, the list is empty (see attached screenshot). Normally there should be all the available product fields in it.

I'm puzzled. Any idea where this could be coming from ?

 

Thanks !

2016-01-26_07_19_45-Microsoft_Edge.png

Replies

 
Nicolai Høeg Pedersen
Reply

Hi Gaetan

Can you take a look in the browser developer tools and see if you get some 404s?

That would indicate that your site is not correctly setup. Search the forums for similar problems...

BR Nicolai

 
Gaetan Di Caro
Reply

Hi Nicolai,

Thanks for your answer. I don't get any 404 or JS error in the browser console.

 
Nicolai Høeg Pedersen
Reply

Then I need to see you index configuration. Or a link?

 
Gaetan Di Caro
Reply

Unfortunately the solution isn't available outside of my local environment yet. But here's a screenshot of the index configuration : there's not much going on as you can see, but maybe I missed something.

2016-01-27_09_45_52-PIMCommerce_-_Dynamicweb_Administration.png
 
Nicolai Høeg Pedersen
Reply

Ah, elementary my dear Watson!

You need to add fields to your index. Right now you store nothing in your index, that is why you do not see any fields in the search.

Maybe take a look at the Indexing document here: http://developer.dynamicweb.com/downloads/documentation.aspx

 
Gaetan Di Caro
Reply

Indeed if I add fields manually, they become available in the expression !

I'm asking the question because on another solution we have, all the product fields appear in that dropdown (see attached)

2016-01-27_10_00_32-Dynamicweb_8_-_Dynamicweb_Administration.png
 
Adrian Ursu
Reply

I have seen it myself.

It's not 404 nor JS. It's something in the configuration of the file generated for query.

I have edited manually the query file and it was back to normal. But it breaks after you add the first query expression.

I have noticed that in one of the 7.2 versions.

 
Nicolai Høeg Pedersen
Reply
This post has been marked as an answer

Hi Gaetan

You need to add the product schema extender to the fields section, see dump.

BR Nicolai

Capture.PNG
Votes for this answer: 1
 
Gaetan Di Caro
Reply

AH, of course ! Thanks !

 

You must be logged in to post in the forum