Here Is My Table
create table products1 (ProductId text,Sku text,Name json,ShortDescription json,FullDescription text,Price float,Published bool,ManufacturerPartNumber text,VendorId integer,CreatedOnUtc bigint,CategoryIds multi,ManufacturerIds multi,ProductTagIds multi,SpecificationOptionIds multi,ProductAttributeCombinationSku text,Manufacturers json,Categories json) min_infix_len = '3' expand_keywords = '1'
In this table Name is JSON datatype while FullDescription is text datatype
Here is my data in JSON format
[
{
"insert": {
"index": "products1",
"id": 1,
"doc": {
"ProductId": "1",
"Sku": "COMP_CUST_UPDATE_1",
"FullDescription": "<p>Fight back against cluttered workspaces with the stylish IBM zBC12 All-in-One desktop PC, featuring powerful computing resources and a stunning 20.1-inch widescreen display with stunning XBRITE-HiColor LCD technology.</p>",
"Price": 1200.0000,
"Published": true,
"ManufacturerPartNumber": "",
"CreatedOnUtc": 638145534882226590,
"VendorId": 0,
"CategoryIds": [
2,
1
],
"ManufacturerIds": [
6
],
"ProductTagIds": [
1,
2
],
"SpecificationOptionIds": [],
"ProductAttributeCombinationSku": "Build_PAC_1",
"Name": {
"en": "Apple iMac",
"hi": "बिल्ड-अपना-कंप्यूटर"
},
"ShortDescription": {
"en": "Build it Update by schedule task",
"hi": "Build it Update by schedule task"
},
"Manufacturers": {
"en": [
"Refurbished Computer"
],
"hi": [
"नवीनीकृत कंप्यूटर"
]
},
"Categories": {
"en": [
"Desktops",
"Computers"
],
"hi": [
"Desktops",
"Computers"
]
}
}
}
},
{
"insert": {
"index": "products1",
"id": 2,
"doc": {
"ProductId": "2",
"Sku": "DS_VA3_PC",
"FullDescription": "<p>Apple Macbook pro system is put through an extensive stress test, ensuring you experience zero bottlenecks and get the maximum performance from your hardware.</p>",
"Price": 1259.0000,
"Published": true,
"ManufacturerPartNumber": "",
"CreatedOnUtc": 638145534885417350,
"VendorId": 0,
"CategoryIds": [
2
],
"ManufacturerIds": [],
"ProductTagIds": [
1,
2,
3
],
"SpecificationOptionIds": [],
"ProductAttributeCombinationSku": "",
"Name": {
"en": "Digital Storm VANQUISH 3 Custom Performance PC",
"hi": "Digital Storm VANQUISH 3 Custom Performance PC"
},
"ShortDescription": {
"en": "Digital Storm Vanquish 3 Desktop PC",
"hi": "Digital Storm Vanquish 3 Desktop PC"
},
"Manufacturers": {},
"Categories": {
"en": [
"Desktops"
],
"hi": [
"Desktops"
]
}
}
}
}
]
You can see there is “Apple” word in first record in “Name” column while in second record it is in “FullDescription” column.
Now I want to search with “Apple” keyword and want to both record as a result, So what should be my search request ?
Currently I am getting single record but I want to both record as a result and My search request is mentioned in my previous question.
Here Search with asp.net client - #46 by Kamlesh