<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>19401</bug_id>
          
          <creation_ts>2012-10-09 17:39:37 +0000</creation_ts>
          <short_desc>Upgrade site search</short_desc>
          <delta_ts>2013-03-14 14:05:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>webplatform.org</product>
          <component>Search</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</resolution>
          
          <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19351</see_also>
    
    <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19546</see_also>
    
    <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19694</see_also>
    
    <see_also>https://www.w3.org/Bugs/Public/show_bug.cgi?id=19474</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>major</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Scott Rowe">scottrowe</reporter>
          <assigned_to name="team-webplatform-admin list">team-webplatform-admin</assigned_to>
          <cc>dan</cc>
    
    <cc>james.w3bugzilla</cc>
    
    <cc>jk_ad</cc>
    
    <cc>jonathan</cc>
    
    <cc>julee</cc>
    
    <cc>pamela.fox</cc>
    
    <cc>team-webplatform-admin</cc>
          
          <qa_contact name="public-webplatform-bugs list">public-webplatform-bugs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>75711</commentid>
    <comment_count>0</comment_count>
    <who name="Scott Rowe">scottrowe</who>
    <bug_when>2012-10-09 17:39:37 +0000</bug_when>
    <thetext>Search with &quot;WebSocket&quot;
Notice that results 2 - 4 are duplicates, as are results 5 - 7
It&apos;s much worse under &quot;Page text matches&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>76487</commentid>
    <comment_count>1</comment_count>
    <who name="James Phillpotts">james.w3bugzilla</who>
    <bug_when>2012-10-17 10:01:57 +0000</bug_when>
    <thetext>Related to this are the comments on the forums here: http://talk.webplatform.org/forums/index.php/2063/can-search-accuracy-be-improved</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>77574</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-10-31 21:29:40 +0000</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 19351 ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79225</commentid>
    <comment_count>3</comment_count>
    <who name="Alexis Deveria">jk_ad</who>
    <bug_when>2012-12-01 00:47:00 +0000</bug_when>
    <thetext>I do not believe this bug is a duplicate of bug 19351, that one refers to the snippet text content that appears in search results, this one refers to the fact that many duplicate results appear for a search.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>79228</commentid>
    <comment_count>4</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-12-01 09:17:51 +0000</bug_when>
    <thetext>They both would be fixed by an upgrade to the search function.  I am referencing as See Also between the two.

I think the key to solving this one is having the search read the output of the page source compared to the direct source.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80029</commentid>
    <comment_count>5</comment_count>
      <attachid>1279</attachid>
    <who name="Dan Wendorf">dan</who>
    <bug_when>2012-12-12 20:59:59 +0000</bug_when>
    <thetext>Created attachment 1279
JavaScript snippet for adding search</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80030</commentid>
    <comment_count>6</comment_count>
      <attachid>1280</attachid>
    <who name="Dan Wendorf">dan</who>
    <bug_when>2012-12-12 21:00:49 +0000</bug_when>
    <thetext>Created attachment 1280
Sample for custom search box

Copy the behavior of the #searchform form to post to the search page.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80032</commentid>
    <comment_count>7</comment_count>
    <who name="Dan Wendorf">dan</who>
    <bug_when>2012-12-12 21:14:10 +0000</bug_when>
    <thetext>This solution in my previous two attachments uses the Google Custom Search API to peform the search in-page. The default code snippet includes its own search box, but to have a site-wide search box, replace the current form behavior with that of #searchform in the custom search box sample.

Next steps: This code still needs to be integrated in the actual search page and styles, and the site-wide search box needs to be replaced.

The code snippets in the attachments use a sample Google Custom Search account I have created, but a new account can easily be created at http://www.google.com/cse/manage/create</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80035</commentid>
    <comment_count>8</comment_count>
    <who name="Dan Wendorf">dan</who>
    <bug_when>2012-12-12 22:01:57 +0000</bug_when>
    <thetext>After a further discussion about implementation, we found a pre-made extension for MediaWiki at http://www.mediawiki.org/wiki/Extension:Google_Custom_Search_Engine that may be a simpler way to integrate Custom Search Engine.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80135</commentid>
    <comment_count>9</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-12-13 19:49:40 +0000</bug_when>
    <thetext>*** Bug 19351 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>80136</commentid>
    <comment_count>10</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2012-12-13 19:51:18 +0000</bug_when>
    <thetext>I just made this bug report the central location for site search issues.

Also, there are a handful of search extensions that we could use (including one for Google Site Search). http://www.mediawiki.org/wiki/Category:Search_extensions has a list of them. We should review a few of them once we have the codez online and see which would be best to use.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>84418</commentid>
    <comment_count>11</comment_count>
    <who name="Jonathan Garbee">jonathan</who>
    <bug_when>2013-03-14 14:05:32 +0000</bug_when>
    <thetext>New location: http://project.webplatform.org/search/issues/6</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1279</attachid>
            <date>2012-12-12 20:59:59 +0000</date>
            <delta_ts>2012-12-12 20:59:59 +0000</delta_ts>
            <desc>JavaScript snippet for adding search</desc>
            <filename>search_code.txt</filename>
            <type>text/plain</type>
            <size>598</size>
            <attacher name="Dan Wendorf">dan</attacher>
            
              <data encoding="base64">PCEtLSBQdXQgdGhlIGZvbGxvd2luZyBqYXZhc2NyaXB0IGJlZm9yZSB0aGUgY2xvc2luZyA8L2hl
YWQ+IHRhZy4gLS0+DQo8c2NyaXB0Pg0KICAoZnVuY3Rpb24oKSB7DQoJdmFyIGN4ID0gJzAwNTEy
Nzg5MTM2MjkzNzYxODIwMjpmZG41em1jYy1meSc7DQoJdmFyIGdjc2UgPSBkb2N1bWVudC5jcmVh
dGVFbGVtZW50KCdzY3JpcHQnKTsgZ2NzZS50eXBlID0gJ3RleHQvamF2YXNjcmlwdCc7IGdjc2Uu
YXN5bmMgPSB0cnVlOw0KCWdjc2Uuc3JjID0gKGRvY3VtZW50LmxvY2F0aW9uLnByb3RvY29sID09
ICdodHRwczonID8gJ2h0dHBzOicgOiAnaHR0cDonKSArDQoJCScvL3d3dy5nb29nbGUuY29tL2Nz
ZS9jc2UuanM/Y3g9JyArIGN4Ow0KCXZhciBzID0gZG9jdW1lbnQuZ2V0RWxlbWVudHNCeVRhZ05h
bWUoJ3NjcmlwdCcpWzBdOyBzLnBhcmVudE5vZGUuaW5zZXJ0QmVmb3JlKGdjc2UsIHMpOw0KICB9
KSgpOw0KPC9zY3JpcHQ+DQoNCjwhLS0gUGxhY2UgdGhpcyB0YWcgd2hlcmUgeW91IHdhbnQgYm90
aCBvZiB0aGUgc2VhcmNoIGJveCBhbmQgdGhlIHNlYXJjaCByZXN1bHRzIHRvIHJlbmRlciAtLT4N
CjxnY3NlOnNlYXJjaD48L2djc2U6c2VhcmNoPg==
</data>

          </attachment>
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>1280</attachid>
            <date>2012-12-12 21:00:49 +0000</date>
            <delta_ts>2012-12-12 21:00:49 +0000</delta_ts>
            <desc>Sample for custom search box</desc>
            <filename>sample_search.html</filename>
            <type>text/html</type>
            <size>893</size>
            <attacher name="Dan Wendorf">dan</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCgk8Ym9keT4NCgkJPGgxPkN1c3RvbSBTZWFyY2ggQm94
IEZvciBIZWFkZXI8L2gxPg0KCQkNCgkJPGZvcm0gaWQ9InNlYXJjaGZvcm0iIGFjdGlvbj0ic2Ft
cGxlX3NlYXJjaC5odG1sIj4NCgkJCTxpbnB1dCBpZD0icSIgdmFsdWU9ImJvcmRlciByYWRpdXMi
IG5hbWU9InEiIC8+DQoJCQk8aW5wdXQgdHlwZT0ic3VibWl0Ij4NCgkJPC9kaXY+DQoJCQ0KCQk8
aDE+U2VhcmNoIFJlc3VsdHM8L2gxPg0KCQk8IS0tIFB1dCB0aGUgZm9sbG93aW5nIGphdmFzY3Jp
cHQgYmVmb3JlIHRoZSBjbG9zaW5nIDwvaGVhZD4gdGFnLiAtLT4NCgkJPHNjcmlwdD4NCgkJICAo
ZnVuY3Rpb24oKSB7DQoJCQl2YXIgY3ggPSAnMDA1MTI3ODkxMzYyOTM3NjE4MjAyOmZkbjV6bWNj
LWZ5JzsNCgkJCXZhciBnY3NlID0gZG9jdW1lbnQuY3JlYXRlRWxlbWVudCgnc2NyaXB0Jyk7IGdj
c2UudHlwZSA9ICd0ZXh0L2phdmFzY3JpcHQnOyBnY3NlLmFzeW5jID0gdHJ1ZTsNCgkJCWdjc2Uu
c3JjID0gKGRvY3VtZW50LmxvY2F0aW9uLnByb3RvY29sID09ICdodHRwczonID8gJ2h0dHBzOicg
OiAnaHR0cDonKSArDQoJCQkJJy8vd3d3Lmdvb2dsZS5jb20vY3NlL2NzZS5qcz9jeD0nICsgY3g7
DQoJCQl2YXIgcyA9IGRvY3VtZW50LmdldEVsZW1lbnRzQnlUYWdOYW1lKCdzY3JpcHQnKVswXTsg
cy5wYXJlbnROb2RlLmluc2VydEJlZm9yZShnY3NlLCBzKTsNCgkJICB9KSgpOw0KCQk8L3Njcmlw
dD4NCg0KCQk8IS0tIFBsYWNlIHRoaXMgdGFnIHdoZXJlIHlvdSB3YW50IGJvdGggb2YgdGhlIHNl
YXJjaCBib3ggYW5kIHRoZSBzZWFyY2ggcmVzdWx0cyB0byByZW5kZXIgLS0+DQoJCTxnY3NlOnNl
YXJjaD48L2djc2U6c2VhcmNoPg0KCTwvYm9keT4NCjwvaHRtbD4=
</data>

          </attachment>
      

    </bug>

</bugzilla>