当前位置: 首页 > 知识库问答 >
问题:

solr搜索查询中的qf未按预期工作

邢高爽
2023-03-14
   <field name="id" type="string" indexed="true" stored="true" required="true" multiValued="false" />
   <field name="name" type="text_general" indexed="true" stored="true"/>
   <field name="description" type="text_general" indexed="true" stored="true"/>
   <field name="manu" type="text_general" indexed="true" stored="true" omitNorms="true"/>
   <field name="producturl" type="string" indexed="false" stored="true" required="true"/>
   <field name="imageurl" type="string" indexed="false" stored="true" />
   <field name="category" type="text_general" indexed="true" stored="true" omitNorms="true"/>
   <field name="categorypath" type="lowercase" indexed="true" stored="true" />
   <field name="weight" type="float" indexed="true" stored="true"/>
   <field name="price"  type="float" indexed="true" stored="true"/>
   <field name="popularity" type="int" indexed="true" stored="true" />
   <field name="inStock" type="boolean" indexed="true" stored="true" />
   <field name="last_modified" type="date" indexed="true" stored="true"/>
   <field name="store" type="text_general" indexed="true" stored="true" omitNorms="true"/>

以上查询的结果片段如下:

mrp_d,manu,description,discount_i,store,_version_,price,categorypath,imageurl,name,id,category,producturl,last_modified
60.68,Not Specified,,50,Lazada,1549123070131699713,30.34,Women|Wallets & Accessories,http://srv-live.lazada.com.my/p/image-78714241-16244bcc8b6488fa7c5dc3479b6b6f69-product.jpg,Fashion Women Lady Cute Cat Clutch Long Purse Wallet Card Holder Mobile Bag Green,LZDNO037FAAA8H917ANMY-18042381,Wallets & Accessories,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Ffashion-women-lady-cute-cat-clutch-long-purse-wallet-card-holder-mobile-bag-green-14241787.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-10-25T01:27:53Z
60.3,Not Specified,,50,Lazada,1549123070201954306,30.15,Women|Wallets & Accessories,http://srv-live.lazada.com.my/p/image-53144241-27196219e745476ccd5b10cb0febf37b-product.jpg,Fashion Women Flower Long Zip Wallet Card Holder Mobile Bag Clutch Purse Pockets Navy Blue,LZDNO037FAAA8HAUFANMY-18045720,Wallets & Accessories,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Ffashion-women-flower-long-zip-wallet-card-holder-mobile-bag-clutch-purse-pockets-navy-blue-14244135.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-10-25T01:27:53Z
84.66,Not Specified,,66,Lazada,1549123070268014594,28.22,Women|Bags & Clutches|Handbags,http://srv-live.lazada.com.my/p/image-63215241-13718b9bf73f9ba09610037ef9ac8dad-product.jpg,ERA New Women Vintage Leather Coin Cell Phone Mobile Mini Cross-body Shoulder Bag,LZDNO037FAAA8HGBOANMY-18055171,Handbags,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Fera-new-women-vintage-leather-coin-cell-phone-mobile-mini-cross-body-shoulder-bag-14251236.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-10-25T01:27:53Z
84.66,Not Specified,,66,Lazada,1549123070268014595,28.22,Women|Bags & Clutches|Handbags,http://srv-live.lazada.com.my/p/image-93215241-08f2151a427d52295328a5d7e5addce1-product.jpg,ERA New Women Vintage Leather Coin Cell Phone Mobile Mini Cross-body Shoulder Bag,LZDNO037FAAA8HGBRANMY-18055174,Handbags,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Fera-new-women-vintage-leather-coin-cell-phone-mobile-mini-cross-body-shoulder-bag-14251239.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-10-25T01:27:53Z

我在这里做错了什么?我如何微调结果?

提前感谢你的帮助。

编辑(带有调试结果的xml结果):

查询:http:////solr//select?debugquery=on&deftype=edismax&indent=on&mm=3&ps=10&q=mobile&qf=category^10.0%20manu^10.0%20categoryPath^5.0%20name^0.2&wt=xml

完整答复:

<?xml version="1.0" encoding="UTF-8"?>
<response>

<lst name="responseHeader">
  <int name="status">0</int>
  <int name="QTime">26</int>
  <lst name="params">
    <str name="mm">3</str>
    <str name="q">mobile</str>
    <str name="defType">edismax</str>
    <str name="ps">10</str>
    <str name="indent">on</str>
    <str name="qf">category^10.0 manu^10.0 categorypath^5.0 name^0.2</str>
    <str name="wt">xml</str>
    <str name="debugQuery">on</str>
    <str name="_">1477372296342</str>
  </lst>
</lst>
<result name="response" numFound="12450223" start="0">
  <doc>
    <str name="description">This vertical case is made from PU leather material, and specially designed for your smartphone. The case features card slot and earphone hole for convenient use. It can be used as a shoulder bag or holster case. ? Made from PU material ? Come with two card slot ? Used as a shoulder bag and holster case ? Provides all-around protection</str>
    <int name="discount_i">40</int>
    <double name="mrp_d">990.0</double>
    <str name="store">Flipkart</str>
    <float name="price">490.0</float>
    <str name="categorypath">Mobiles &amp; Tablets|Mobile Accessories|Cases &amp; Covers</str>
    <str name="imageurl">http://img5a.flixcart.com/image/cases-covers/holster/h/c/x/jojo-jojo288086-400x400-imae822ffdyrhgmg.jpeg</str>
    <str name="name">Jojo Holster for Fly Mobile MV 247</str>
    <str name="id">ACCE9GQ3BMCHZXYY</str>
    <str name="category">Cases &amp; Covers</str>
    <str name="manu">Jojo</str>
    <str name="producturl">http://dl.flipkart.com/dl/jojo-holster-fly-mobile-mv-247/p/itme9gq44hz9dtjh?pid=ACCE9GQ3BMCHZXYY</str>
    <date name="last_modified">2016-10-21T07:40:13Z</date>
    <long name="_version_">1548784125563895810</long></doc>
  <doc>
    <str name="description">Mobile Cover Shop having numerous designs of exclusive range for mobile covers, back cover and protective cover and cases. Each cover is made from a special strong and durable plastic material, which provides your gadget with long lasting protection. We suggest you to keep this case in your collection for being in sync with latest trend in fashion.</str>
    <int name="discount_i">50</int>
    <double name="mrp_d">1200.0</double>
    <str name="store">Flipkart</str>
    <float name="price">599.0</float>
    <str name="categorypath">Mobiles &amp; Tablets|Mobile Accessories|Cases &amp; Covers</str>
    <str name="imageurl">http://img6a.flixcart.com/image/cases-covers/back-cover/p/k/e/mobile-cover-shop-mcs24354-400x400-imae8x3ydhwu6jrd.jpeg</str>
    <str name="name">Mobile Cover Shop Back Cover for Lenovo K920</str>
    <str name="id">ACCE8Y3U5HFZVPKE</str>
    <str name="category">Cases &amp; Covers</str>
    <str name="manu">Mobile Cover Shop</str>
    <str name="producturl">http://dl.flipkart.com/dl/mobile-cover-shop-back-lenovo-k920/p/itme8y3utmh9jzaa?pid=ACCE8Y3U5HFZVPKE</str>
    <date name="last_modified">2016-10-21T07:40:13Z</date>
    <long name="_version_">1548784125873225732</long></doc>
  <doc>
    <str name="description">Mobile Cover Shop having numerous designs of exclusive range for mobile covers, back cover and protective cover and cases. Each cover is made from a special strong and durable plastic material, which provides your gadget with long lasting protection. We suggest you to keep this case in your collection for being in sync with latest trend in fashion.</str>
    <int name="discount_i">50</int>
    <double name="mrp_d">1200.0</double>
    <str name="store">Flipkart</str>
    <float name="price">599.0</float>
    <str name="categorypath">Mobiles &amp; Tablets|Mobile Accessories|Cases &amp; Covers</str>
    <str name="imageurl">http://img6a.flixcart.com/image/cases-covers/back-cover/d/s/u/mobile-cover-shop-mcs23176-400x400-imae8p53hgwggnwb.jpeg</str>
    <str name="name">Mobile Cover Shop Back Cover for Samsung Galaxy S5</str>
    <str name="id">ACCE8Y3TJPXAFDSU</str>
    <str name="category">Cases &amp; Covers</str>
    <str name="manu">Mobile Cover Shop</str>
    <str name="producturl">http://dl.flipkart.com/dl/mobile-cover-shop-back-samsung-galaxy-s5/p/itme8y3tdjn4nqtj?pid=ACCE8Y3TJPXAFDSU</str>
    <date name="last_modified">2016-10-21T07:40:14Z</date>
    <long name="_version_">1548784126891393025</long></doc>
  <doc>
    <str name="description">Mobile Cover Shop having numerous designs of exclusive range for mobile covers, back cover and protective cover and cases. Each cover is made from a special strong and durable plastic material, which provides your gadget with long lasting protection. We suggest you to keep this case in your collection for being in sync with latest trend in fashion.</str>
    <int name="discount_i">50</int>
    <double name="mrp_d">1200.0</double>
    <str name="store">Flipkart</str>
    <float name="price">599.0</float>
    <str name="categorypath">Mobiles &amp; Tablets|Mobile Accessories|Cases &amp; Covers</str>
    <str name="imageurl">http://img5a.flixcart.com/image/cases-covers/back-cover/z/g/e/mobile-cover-shop-mcs23352-400x400-imae8p544uhatwtc.jpeg</str>
    <str name="name">Mobile Cover Shop Back Cover for Samsung Galaxy Note 2 N7100</str>
    <str name="id">ACCE8Y3TGHAK2ZGE</str>
    <str name="category">Cases &amp; Covers</str>
    <str name="manu">Mobile Cover Shop</str>
    <str name="producturl">http://dl.flipkart.com/dl/mobile-cover-shop-back-samsung-galaxy-note-2-n7100/p/itme8y3tcugyxmeb?pid=ACCE8Y3TGHAK2ZGE</str>
    <date name="last_modified">2016-10-21T07:40:15Z</date>
    <long name="_version_">1548784128432799747</long></doc>
  <doc>
    <str name="description">Mobile Cover Shop having numerous designs of exclusive range for mobile covers, back cover and protective cover and cases. Each cover is made from a special strong and durable plastic material, which provides your gadget with long lasting protection. We suggest you to keep this case in your collection for being in sync with latest trend in fashion.</str>
    <int name="discount_i">50</int>
    <double name="mrp_d">1200.0</double>
    <str name="store">Flipkart</str>
    <float name="price">599.0</float>
    <str name="categorypath">Mobiles &amp; Tablets|Mobile Accessories|Cases &amp; Covers</str>
    <str name="imageurl">http://img6a.flixcart.com/image/cases-covers/back-cover/x/3/q/mobile-cover-shop-mcs22843-400x400-imae8p53feah3b2q.jpeg</str>
    <str name="name">Mobile Cover Shop Back Cover for Apple iPhone 6 Plus</str>
    <str name="id">ACCE8Y3TM8YWHX3Q</str>
    <str name="category">Cases &amp; Covers</str>
    <str name="manu">Mobile Cover Shop</str>
    <str name="producturl">http://dl.flipkart.com/dl/mobile-cover-shop-back-apple-iphone-6-plus/p/itme8y3twsyngygp?pid=ACCE8Y3TM8YWHX3Q</str>
    <date name="last_modified">2016-10-21T07:40:15Z</date>
    <long name="_version_">1548784128862715904</long></doc>
</result>
<lst name="debug">
  <str name="rawquerystring">mobile</str>
  <str name="querystring">mobile</str>
  <str name="parsedquery">(+DisjunctionMaxQuery(((manu:mobile)^10.0 | (name:mobile)^0.2 | (category:mobile)^10.0 | (categorypath:mobile)^5.0)))/no_coord</str>
  <str name="parsedquery_toString">+((manu:mobile)^10.0 | (name:mobile)^0.2 | (category:mobile)^10.0 | (categorypath:mobile)^5.0)</str>
  <lst name="explain">
    <str name="ACCE9GQ3BMCHZXYY">
0.9692176 = max of:
  0.9692176 = weight(name:mobile in 311) [], result of:
    0.9692176 = score(doc=311,freq=1.0 = termFreq=1.0
), product of:
      0.2 = boost
      4.5229306 = idf(docFreq=177649, docCount=16362429)
      1.0714487 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.75 = parameter b
        8.496009 = avgFieldLength
        7.111111 = fieldLength
</str>
    <str name="ACCE8Y3U5HFZVPKE">
62.168762 = max of:
  62.168762 = weight(manu:mobile in 372) [], result of:
    62.168762 = score(doc=372,freq=1.0 = termFreq=1.0
), product of:
      10.0 = boost
      6.216876 = idf(docFreq=32829, docCount=16452022)
      1.0 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.0 = parameter b (norms omitted for field)
  0.8345084 = weight(name:mobile in 372) [], result of:
    0.8345084 = score(doc=372,freq=1.0 = termFreq=1.0
), product of:
      0.2 = boost
      4.5229306 = idf(docFreq=177649, docCount=16362429)
      0.92253065 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.75 = parameter b
        8.496009 = avgFieldLength
        10.24 = fieldLength
</str>
    <str name="ACCE8Y3TJPXAFDSU">
62.168762 = max of:
  62.168762 = weight(manu:mobile in 570) [], result of:
    62.168762 = score(doc=570,freq=1.0 = termFreq=1.0
), product of:
      10.0 = boost
      6.216876 = idf(docFreq=32829, docCount=16452022)
      1.0 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.0 = parameter b (norms omitted for field)
  0.8345084 = weight(name:mobile in 570) [], result of:
    0.8345084 = score(doc=570,freq=1.0 = termFreq=1.0
), product of:
      0.2 = boost
      4.5229306 = idf(docFreq=177649, docCount=16362429)
      0.92253065 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.75 = parameter b
        8.496009 = avgFieldLength
        10.24 = fieldLength
</str>
    <str name="ACCE8Y3TGHAK2ZGE">
62.168762 = max of:
  62.168762 = weight(manu:mobile in 819) [], result of:
    62.168762 = score(doc=819,freq=1.0 = termFreq=1.0
), product of:
      10.0 = boost
      6.216876 = idf(docFreq=32829, docCount=16452022)
      1.0 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.0 = parameter b (norms omitted for field)
  0.6644898 = weight(name:mobile in 819) [], result of:
    0.6644898 = score(doc=819,freq=1.0 = termFreq=1.0
), product of:
      0.2 = boost
      4.5229306 = idf(docFreq=177649, docCount=16362429)
      0.7345788 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.75 = parameter b
        8.496009 = avgFieldLength
        16.0 = fieldLength
</str>
    <str name="ACCE8Y3TM8YWHX3Q">
62.168762 = max of:
  62.168762 = weight(manu:mobile in 886) [], result of:
    62.168762 = score(doc=886,freq=1.0 = termFreq=1.0
), product of:
      10.0 = boost
      6.216876 = idf(docFreq=32829, docCount=16452022)
      1.0 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.0 = parameter b (norms omitted for field)
  0.8345084 = weight(name:mobile in 886) [], result of:
    0.8345084 = score(doc=886,freq=1.0 = termFreq=1.0
), product of:
      0.2 = boost
      4.5229306 = idf(docFreq=177649, docCount=16362429)
      0.92253065 = tfNorm, computed from:
        1.0 = termFreq=1.0
        1.2 = parameter k1
        0.75 = parameter b
        8.496009 = avgFieldLength
        10.24 = fieldLength
</str>
  </lst>
  <str name="QParser">ExtendedDismaxQParser</str>
  <null name="altquerystring"/>
  <null name="boost_queries"/>
  <arr name="parsed_boost_queries"/>
  <null name="boostfuncs"/>
  <lst name="timing">
    <double name="time">26.0</double>
    <lst name="prepare">
      <double name="time">0.0</double>
      <lst name="query">
        <double name="time">0.0</double>
      </lst>
      <lst name="facet">
        <double name="time">0.0</double>
      </lst>
      <lst name="facet_module">
        <double name="time">0.0</double>
      </lst>
      <lst name="mlt">
        <double name="time">0.0</double>
      </lst>
      <lst name="highlight">
        <double name="time">0.0</double>
      </lst>
      <lst name="stats">
        <double name="time">0.0</double>
      </lst>
      <lst name="expand">
        <double name="time">0.0</double>
      </lst>
      <lst name="debug">
        <double name="time">0.0</double>
      </lst>
    </lst>
    <lst name="process">
      <double name="time">25.0</double>
      <lst name="query">
        <double name="time">0.0</double>
      </lst>
      <lst name="facet">
        <double name="time">0.0</double>
      </lst>
      <lst name="facet_module">
        <double name="time">0.0</double>
      </lst>
      <lst name="mlt">
        <double name="time">0.0</double>
      </lst>
      <lst name="highlight">
        <double name="time">0.0</double>
      </lst>
      <lst name="stats">
        <double name="time">0.0</double>
      </lst>
      <lst name="expand">
        <double name="time">0.0</double>
      </lst>
      <lst name="debug">
        <double name="time">24.0</double>
      </lst>
    </lst>
  </lst>
</lst>
</response>

共有1个答案

蒋默
2023-03-14

正如所指出的,在优化搜索的查询部分之前,需要在schema.xml中进行多次更改。此链接包含有关我所搜索内容的详细信息:

http://apprize.info/php/solr_4/6.html

Edit2:因为我试图只搜索mobile,而mobiles的类别在solr数据中被定义为mobilephones。因此,我更改了schema.xml中的制造商和类别字段,如下所示:

  <!--<field name="manu" type="text_general" indexed="true" stored="true" omitNorms="false"/>-->
   <field name="manu" type="text_synonyms_brand" indexed="true" stored="true" omitNorms="false"/>
   <!--<field name="category" type="text_general" indexed="true" stored="true" omitNorms="false"/>-->
   <field name="category" type="text_synonyms_category" indexed="true" stored="true" omitNorms="false"/>

并配置相应的字段类型,如下所示:

<fieldType name="text_synonyms_brand" class="solr.TextField" positionIncrementGap="100">
<!--<analyzer type="index">
 <tokenizer class="solr.KeywordTokenizerFactory"/>
 <filter class="solr.LowerCaseFilterFactory" />
</analyzer>-->
<analyzer type="query">
 <tokenizer class="solr.KeywordTokenizerFactory"/>
 <filter class="solr.LowerCaseFilterFactory"/>
 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" splitOnNumerics="0" catenateWords="0" catenateNumbers="0" catenateAll="1" stemEnglishPossessive="0" splitOnCaseChange="0"/>
 <filter class="solr.SynonymFilterFactory" synonyms="synonyms_brand.txt" ignoreCase="true" expand="true"/> <!-- tokenizerFactory="solr.KeywordTokenizerFactory"/> -->
 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
</analyzer>
</fieldType>

<fieldType name="text_synonyms_category" class="solr.TextField" positionIncrementGap="100">
<!--<analyzer type="index">
 <tokenizer class="solr.KeywordTokenizerFactory"/>
 <filter class="solr.LowerCaseFilterFactory" />
</analyzer>-->
<analyzer type="query">
 <tokenizer class="solr.KeywordTokenizerFactory"/>
 <filter class="solr.LowerCaseFilterFactory"/>
 <filter class="solr.WordDelimiterFilterFactory" generateWordParts="0" generateNumberParts="0" splitOnNumerics="0" catenateWords="0" catenateNumbers="0" catenateAll="1" stemEnglishPossessive="0" splitOnCaseChange="0"/>
 <filter class="solr.SynonymFilterFactory" synonyms="synonyms_category.txt" ignoreCase="true" expand="true"/> <!-- tokenizerFactory="solr.KeywordTokenizerFactory"/>-->
 <filter class="solr.StopFilterFactory" ignoreCase="true" words="stopwords.txt" />
</analyzer>
</fieldType>

然后在同义词*.txt中,我添加了以下几个同义词:

# cat synonyms_category.txt
Iphone=>mobilephones
mobile=>mobilephones
phone=>mobilephones
galaxy=>mobilephones

# cat synonyms_brand.txt
Iphone=>apple
galaxy=>samsung

在重新启动solr(作为索引时间分析器我注释掉了)之后,我得到了正确的结果。

很少的例子是:

  1. 用于移动:

查询:

http://<solr-url>/solr/<core>/select?debugQuery=on&indent=on&q=(_query_:"{!edismax mm='100%25' qf='manu^2.0' v=$q1}") OR (_query_:"{!edismax mm='100%25' qf='category^2.0' v=$q1}")&q1=mobile&wt=csv

结果:

mrp_d,manu,description,discount_i,store,_version_,price,categorypath,imageurl,name,id,category,producturl,last_modified
782.0,OEM,,55,Lazada,1549960720168255490,350.0,Mobiles & Tablets|Mobile Phones,http://srv-live.lazada.com.my/p/image-8341802-1-product.jpg,Doogee Voyager2 DG310 5inch Smartphone Android 4.4 Quad Core MT6582 1.3GHZ 3G 1-8GB,LZDOE702ELBSM1QANMY-2279016,Mobile Phones,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Fdoogee-voyager2-dg310-5inch-smartphone-android-44-quad-core-mt6582-13ghz-3g-1-8gb-2081438.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-11-03T07:21:57Z
39.0,OEM,,50,Lazada,1549960721000824834,19.4,Mobiles & Tablets|Mobile Phones,http://srv-live.lazada.com.my/p/image-6515112-1-product.jpg,Retro Phone Handset for iPhone 4/4S,LZDOE702ELBTC2CANMY-2320607,Mobile Phones,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Fretro-phone-handset-for-iphone-44s-2115156.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-11-03T07:21:58Z
http://<solr-url>/solr/<core>/select?debugQuery=on&indent=on&q=(_query_:"{!edismax mm='100%25' qf='manu^2.0' v=$q1}") AND (_query_:"{!edismax mm='100%25' qf='category^2.0' v=$q1}")&q1=iphone&wt=csv
mrp_d,manu,description,discount_i,store,_version_,price,categorypath,imageurl,name,id,category,producturl,last_modified
3199.0,Apple,,28,Lazada,1549961206837542912,2299.0,Mobiles & Tablets|Mobile Phones,http://srv-live.lazada.com.my/p/image-9072684-1-product.jpg,Apple iPhone 6s 16GB (Gold) Malaysia Set,LZDAP564ELAA2W839ANMY-5749957,Mobile Phones,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2Fapple-iphone-6s-16gb-gold-malaysia-set-4862709.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-11-03T07:29:42Z
1499.0,Apple,,52,Lazada,1549961206837542915,705.0,Mobiles & Tablets|Mobile Phones,http://srv-live.lazada.com.my/p/image-0684205-490901cdc6628dd90beefa8e05173cdd-product.jpg,100% New Condition (Refurbished) Apple iPhone 5 16GB (White)[Grade A],LZDAP564ELAA2ZP7GANMY-5976742,Mobile Phones,http://ho.lazada.com.my/SHHSoo?url=http%3A%2F%2Fwww.lazada.com.my%2F100-new-condition-refurbished-apple-iphone-5-16gb-whitegrade-a-5024860.html%3Foffer_id%3D%7Boffer_id%7D%26affiliate_id%3D%7Baffiliate_id%7D%26offer_name%3D%7Boffer_name%7D_%7Boffer_file_id%7D%26affiliate_name%3D%7Baffiliate_name%7D%26transaction_id%3D%7Btransaction_id%7D&aff_sub=&aff_sub2=&aff_sub3=&aff_sub4=&aff_sub5=,2016-11-03T07:29:42Z
 类似资料:
  • 为什么我的搜索函数永远不会执行“else”(如果没有找到结果,else应该回显文本)?我在尝试显示所有结果时也遇到了一些问题(没有选择搜索标准,只需按搜索按钮)。我将上传页面的全部代码,因为我不知道您是否也需要HTML部分来解决问题。我知道这是一个很大的代码块,但如果可以的话,请帮忙。谢谢 以下是我的代码链接:http://pastebin.com/BXe1C0dr

  • 我尝试创建一个查询,显示入住和退房日期之间的可用酒店。此外,当我为特定房间预订时,我将他们的预订列设置为1。这意味着,在现实生活中,当结账日期到来时,触发函数将该预订列设置成0。 如果酒店的所有房间都已预订(预订=1),并且这些房间的签入-退房日期是特定日期(签入-退房输入),则不要将该酒店放在列表中。我的查询不会显示我想要的结果。 查询:输入:国家(状态)、签入和签出。 当我运行查询时,它总是显

  • 我正在尝试使用弹性搜索的内部点击功能来检索子文档内容。我的查询包含两个has_child子句,如下面的代码片段所示。我所观察到的是,我只获得了内部点击响应中属于第二个子子句的那些子内容。看起来最后的内部点击覆盖了第一个内部点击。 有什么方法可以同时获得内心的点击率吗? 下面是我使用的查询。

  • 我已经读过这个答案,如何组合多个And和Or通过方法名,我同意它。但是,我不认为我的情况像行动的复杂,你可以看到。只是“and”和“OR”查询条件组合,这在SQL方式中是相当容易的,但我只想通过JPA方式来实现。

  • 问题内容: 我有带日期对象的文档。 初始化Firestore的代码: 查询代码: 我总是在获取所有记录,并且看起来where子句没有得到应用。在Firebase控制台上,我看到的存储为时间戳。 Firebase控制台中的文档: 问题答案: Cloud Firestore查询是不可变的,这意味着您无法更改现有查询的属性。如果通过调用方法更改值,它将成为一个新查询。因此,要解决此问题,请链接所有方法调

  • 我正在使用spring Roo并希望访问Controller类中的一个bean,该类在ApplicationContext.xml中具有以下配置: 配置类本身是: 在我的Controller中,我认为一个简单的Autowired注释应该可以完成这项工作 在启动过程中,spring在setSkipWeeks方法中打印消息。不幸的是,每当我在控制器中调用config.getSkipWeeks()时,它

  • 当我运行以下程序时,它只打印 然而,从Java 8的equalsIgnoreCase文档中我们发现: 如果以下至少一项为真,则两个字符c1和c2被视为相同的忽略情况: •对每个字符应用java.lang.character.ToUpperCase(char)方法会产生相同的结果 所以我的问题是为什么这个程序不打印 在这两种操作中,都使用了大写字符。

  • 我试图使用来传输我根据前面的问题设置的自定义标头。 我在文件中读到... 我的属性包括: