简体   繁体   English

使用Websphere Commerce定制Solr

[英]Solr customizing with Websphere Commerce

I have a strange requirement in Solr. 我在Solr中有一个奇怪的要求。

The business model is like for each store in state (say victoria), we have different sales catalog (like Richmond, Brunswick etc) which in turn act as fulfillment centers on their own. 商业模式就像州(例如维多利亚州)的每家商店一样,我们有不同的销售目录(例如里士满,不伦瑞克等),而销售目录又可以自己充当履行中心。

so my url of storeId- vic and catalogId-Richmond will retrieve me catalogues with richmond's store. 因此,我的storeId-vic和catalogId-Richmond的网址将检索我与Richmond的商店的目录。

Now the requirement is I need to filter out the products based on the inventory for each of these sales catalogues. 现在的要求是,我需要根据这些销售目录中每个目录的库存来过滤产品。

I constructed a TI table which has the following structure 我构建了一个具有以下结构的TI表

catentry_id -------- QUANTITY_RICFUL-------------QUANTITY_BrunFUL 1234-------------------0------------------------------------20 catentry_id -------- QUANTITY_RICFUL ----------------- QUANTITY_BrunFUL 1234 ------------------- 0 ----- ------------------------------- 20

I had incorporate the changes in solr query to add these columns in the final result too. 我在solr查询中合并了更改,也将这些列添加到了最终结果中。

But I do not know how to filter out the products in the front end during catalogue navigation or during search. 但是我不知道如何在目录导航或搜索过程中过滤掉前端的产品。

Any help would be much appreciated!!! 任何帮助将非常感激!!!

I am not sure what you are trying to ask here but it seems you are trying to display a Quantity dropdown or display an Quantity field under each product on a search page which to me makes no sense from a UI perspective. 我不确定您要在这里问什么,但似乎您正在尝试在搜索页面上的每个产品下方显示“ Quantity dropdown或“ Quantity field ,从UI角度看,这对我来说毫无意义。 Also keep in mind if you have integrated with a 3rd party inventory model that runs every few mins/hours etc. How often do you plan to run indexing etc? 还请记住,如果您已集成了每隔几分钟/小时等运行的第三方库存模型, 那么您打算多久运行一次索引等?

I would rather leave such complexity to a Prodcut Detail page. 我宁愿将这种复杂性留给“ Prodcut Detail页面。 If you do require to show an Quantity fiel d on the search page I would rather prefer displaying a QuickView popup/modal that displays the color/size attributes with the quantity dropdown etc and enable a user to add an item to his/her shopping cart. 如果你需要显示的Quantity fiel搜索页面我宁愿显示在d QuickView popup/modal显示的颜色/尺寸与属性quantity dropdown等,并允许用户将项目添加到他/她的购物车。

So basically you want to tie the returned catalog entries in a list with inventory? 因此,基本上,您想将清单中返回的目录条目与清单联系起来吗? For instance, when they click on a category you do not want to display products with no inventory? 例如,当他们单击类别时,您不想显示没有库存的产品吗?

This would be a customization you can either do at the Solr Level or at the JSP level. 您可以在Solr级别或JSP级别进行自定义。 You should probably track inventory in commerce (import it) into a field Solr can key off of and then only return items with the flag set to greater than zero. 您可能应该跟踪商务中的库存(将其导入)到Solr可以取消标记的字段中,然后仅返回标记设置为大于零的项目。 I am not sure if you need actual inventory or just a boolean. 我不确定您是否需要实际库存或仅布尔值。 Are you using a single fulfillment center or multiple ones? 您使用的是单个履行中心还是多个履行中心? Multiple gets a bit trickier and it would require them to log in most likely but then fulfillment would be addressed by the ship to address. 倍数变得有些棘手,这将要求他们最有可能登录,但随后实现将由船来解决。

If the store is set up with ATP inventory then you should just get this for free, as products not in stock will simply not be displayed. 如果商店设置了ATP库存,则您应该免费获得此库存,因为根本不会显示没有库存的产品。 Check out this page in the infocenter - http://publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=%2Fcom.ibm.commerce.user.doc%2Fconcepts%2Fcosatpatpandnonatp.htm 在信息中心查看此页面-http: //publib.boulder.ibm.com/infocenter/wchelp/v6r0m0/index.jsp?topic=% 2Fcom.ibm.commerce.user.doc%2Fconcepts%2Fcosatpatpandnonatp.htm

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM