Hi All,
Elastic search mapper attachment for attaching pdf and docx files into
ElasticSearch. When i am searching ElastiSearch for particular string the
search results are giving zero. If i am giving single character, the search
is giving results.
ElasticSearch Version: 1.1.0
Mapper Attachment version: 2.0.0
Machine Details: Windows 2008 Server R2 Service pack1
Java run Time: Java 7 update 1
I also attached the pdf file which i indexed into Elastic Search. The pdf
file has word called Sample.
Any help is greatly appreciated. I am stuck here. Please help me.
Here is my search queries:
-
POST /cg_attachments/IncidentRequest/_search?pretty=true
{"query":{"query_string":{"fields":["attachmentFullpath","attachmentContenttype"],"query":"Sample"}},"fields":["attachmentParentId"]}
Elastic Search Response:
{
"took": 45,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 0,
"max_score": null,
"hits": []
}
}
-
POST /cg_attachments/IncidentRequest/_search?pretty=true
{"query":{"query_string":{"fields":["attachmentFullpath","attachmentContenttype"],"query":"c"}},"fields":["attachmentParentId"]}
Response from elasticSearch:
{
"took": 453,
"timed_out": false,
"_shards": {
"total": 1,
"successful": 1,
"failed": 0
},
"hits": {
"total": 6,
"max_score": 0.061956294,
"hits": [
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "39",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
52
]
}
},
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "40",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
53
]
}
},
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "41",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
53
]
}
},
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "42",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
54
]
}
},
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "43",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
55
]
}
},
{
"_index": "cg_attachments",
"_type": "IncidentRequest",
"_id": "44",
"_score": 0.061956294,
"fields": {
"attachmentParentId": [
55
]
}
}
]
}
}
3.* GET /cg_attachments/IncidentRequest/42*
working correctly. Getting correct response.
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/cf8b84ad-1bde-4f78-a798-ccd898ada2d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.