I have the data already in the user_name. When updating the mapping will these data gets copied to the copy_to field ? When i index new set of inputs will the new inputs only gets copied to the copy_to (key) field ? Or do we need to do re-index to get the changes reflected ? How to update copy to without re-indexing the whole document or can we update only the specific user_name document to get the changes reflected ?
i have another question. Can you please help on this
I have 200K records and trying to fetch records based on certain match criteria ex: company_name: "test" If i give size:250 expecting record is not available in search results. size:500 the expecting document is fetched and displayed. How to get the document in top 25 results ?
Query : {"explain":true,"size":250,"query":{"query_string":{"query":" ( (NAME:"BANK AMERICA")^50 OR (ceoNames.fullCEOName:(BANK AMERICA))^30 OR (NAME_PAIR:"BANK AMERICA")^30 OR (NORMAL_NAME:(BANK AMERICA) AND CITY:"" ) ^40 OR (NORMAL_NAME:(BANK AMERICA))^30 OR (tradeStyles.acronym:"BS")^5 OR (NORMAL_NAME_SOUNDEX:"BANK AMERICA")^5 OR (address.streetName:"" AND CITY:"")^30 OR (ZIP:"")^6 OR (address.streetName:"")^6 OR (address.streetNumber:"" AND address.streetName:"")^15 OR (telephones.telephone:"")^50 OR (mailAddresses.postbox:"")^6 ) "}},"sort":[{"_score":{"order":"desc"}},{"statusIndicator":{"order":"asc"}}],"aggs":{"NAME":{"filter":{"term":{"NAME":"ATLS"}}}}}
I have a field 'max_docs' based on that field i need to get the results. How to multiply max_docs with the _score field ?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.