Skip to content

Commit 1f99727

Browse files
committed
new search functionality for next version
1 parent 29c5d01 commit 1f99727

17 files changed

Lines changed: 2520 additions & 1732 deletions

File tree

contentsrv/testFiles/index.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"index","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-04T15:44:41.829288863-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"index","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-07T15:06:08.566221075-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}

contentsrv/testFiles/product.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"product","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-04T15:44:41.847409097-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"product","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-07T15:06:08.638907355-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"productList","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-04T15:44:41.833786584-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}
1+
{"name":"productList","title":"the best book ever","subject":"","author":"ken","createDate":"2022-08-07T15:06:08.569997862-04:00","modifiedDate":"0001-01-01T00:00:00Z","hits":0,"metaAuthorName":"ken","metaDesc":"shopping cart index","metaKeyWords":"","metaRobotKeyWords":"","text":"c29tZSBib29rIHRleHQ=","TextHTML":"","archived":false,"visible":true,"UseModifiedDate":false,"blogPost":false}

data/templateStore/darkmodern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"darkmodern","active":true,"screenShot":""}
1+
{"name":"darkmodern","active":false,"screenShot":""}

data/templateStore/modern.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"name":"modern","active":false,"screenShot":""}
1+
{"name":"modern","active":true,"screenShot":""}

handlers/coverage.out

Lines changed: 1493 additions & 1493 deletions
Large diffs are not rendered by default.

handlers/customerProductHandler.go

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ package handlers
22

33
import (
44
"container/list"
5-
"fmt"
65
"net/http"
76
"strconv"
87
"strings"
@@ -464,24 +463,15 @@ func (h *Six910Handler) ProductSearchByDescAttributes(w http.ResponseWriter, r *
464463
var acsplstart int64
465464
var acsplend int64
466465

467-
fmt.Println("Search: ", csrplsearch)
468-
fmt.Println("Gender: ", gender)
466+
//fmt.Println("Search: ", csrplsearch)
467+
//fmt.Println("Gender: ", gender)
469468

470469
if csrplsearch == "" {
471470
acsplvars := mux.Vars(r)
472471
csrplsearch = acsplvars["search"]
473472
acsplststr := acsplvars["start"]
474473
acsplendstr := acsplvars["end"]
475474

476-
// color = acsplvars["color"]
477-
// size = acsplvars["size"]
478-
// gender = acsplvars["gender"]
479-
480-
//add addition params for gender color and size
481-
//and do productSearch to temp product list and remove products that
482-
//don't meet new parameters like : male size 12, color black
483-
//assign new product list to sppl
484-
485475
acsplstart, _ = strconv.ParseInt(acsplststr, 10, 64)
486476
acsplend, _ = strconv.ParseInt(acsplendstr, 10, 64)
487477
}

handlers/testsitemap/sitemap.xml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
<urlset xmlns="http://www.google.com/schemas/sitemap/0.9">
22
<url>
33
<loc>http://www.six910.com</loc>
4-
<lastmod>2022-08-04</lastmod>
4+
<lastmod>2022-08-07</lastmod>
55
<changefreq>daily</changefreq>
66
<priority>1</priority>
77
</url>
88
<url>
99
<loc>http://www.six910.com/viewProduct/5</loc>
10-
<lastmod>2022-08-04</lastmod>
10+
<lastmod>2022-08-07</lastmod>
1111
<changefreq>weekly</changefreq>
1212
<priority>0.8</priority>
1313
</url>
1414
<url>
1515
<loc>http://www.six910.com/viewProduct/53</loc>
16-
<lastmod>2022-08-04</lastmod>
16+
<lastmod>2022-08-07</lastmod>
1717
<changefreq>weekly</changefreq>
1818
<priority>0.8</priority>
1919
</url>
2020
<url>
2121
<loc>http://www.six910.com/viewProduct/55</loc>
22-
<lastmod>2022-08-04</lastmod>
22+
<lastmod>2022-08-07</lastmod>
2323
<changefreq>weekly</changefreq>
2424
<priority>0.8</priority>
2525
</url>

0 commit comments

Comments
 (0)