| CPC H04L 9/008 (2013.01) [G10L 15/26 (2013.01); H04L 9/0825 (2013.01); H04L 63/0442 (2013.01)] | 14 Claims |

|
1. A text search method in an electronic apparatus, the method comprising:
based on a query including a text being input, computing a vector value having a preset size by using a preset encoding algorithm, the vector value corresponding to the text;
generating a query ciphertext by homomorphic encryption for the computed vector value;
transmitting the generated query ciphertext to a server;
receiving a calculation result ciphertext having similarity information with the query for each of a plurality of indexes;
determining an index having a preset similarity by restoring the calculation result ciphertext; and
receiving information corresponding to the index by transmitting the determined index to the server;
wherein the generating the query ciphertext comprises, based on the text being composed of a plurality of sentences, computing a vector value in a unit of a plurality of sentences, homomorphically encrypting each of the vector values generated in the unit of sentences, and sequentially inserting each of the homomorphically encrypted vector values into each of a plurality of slots in the homomorphic ciphertext to generate a query ciphertext.
|