Coder Social home page Coder Social logo

searchserver's People

Contributors

flywme avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

searchserver's Issues

Some issues

  1. Cannot call /add in parallel the server gives 500 internal server error
  2. Even after adding values via /add there is data.bin file created

Application still requires some synchronization related changes.
Also the parameters related to index file needs to added in config.json file.

CUDA_TOOLKIT_INCLUDE (ADVANCED)

编译的过程中报了以下错误,麻烦帮忙看下:
cmake version 3.2.2
Ubuntu:14.04

root@shvm-5-51:~/SearchServer/build# cmake ..
-- Build Searcher 0.1.0
-- Build Searcher without CUDA support.
CMake Error: The following variables are used in this project, but they are set to NOTFOUND.
Please set them or make sure they are set and tested correctly in the CMake files:
CUDA_TOOLKIT_INCLUDE (ADVANCED)
used as include directory in directory /root/SearchServer
used as include directory in directory /root/SearchServer
used as include directory in directory /root/SearchServer
used as include directory in directory /root/SearchServer/src
used as include directory in directory /root/SearchServer/src/common
used as include directory in directory /root/SearchServer/src/libRestServer
used as include directory in directory /root/SearchServer/src/libSearch
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test
used as include directory in directory /root/SearchServer/test

-- Configuring incomplete, errors occurred!
See also "/root/SearchServer/build/CMakeFiles/CMakeOutput.log".

记录一下config.json中data.bin的存储规则

读取data.bin的实现在FaissInterface.cppbool faissSearch::load里。

具体存储规则如下:

首先是5个int,只有前三个有意义,分别对应:数据维度(dimension),向量数量(count),fileFormatVersion,0,0

接下来为count组数据,每组数据的以一个int长度的id开头,然后是dim * sizeof(float)长度的数据表示向量数据。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.