completed openapi web search project server.#10
Conversation
| const CC_SERVER_URL = 'https://index.commoncrawl.org/'; | ||
| const RABBIT_MQ_URL = 'amqp://localhost:5672'; | ||
| const ELASTIC_LOCAL_URL = 'https://localhost:9200'; | ||
| const ELASTIC_HTTP_CRED = '/home/priyanshu/Downloads/ELK/primary-node/config/certs/http_ca.crt'; |
There was a problem hiding this comment.
@priyanshu-kun remove/edit this path to be something generic.
There was a problem hiding this comment.
it's pretty difficult to determined the location of http_ca.crt file because it varied system to system so used has to set that accordingly.
| const ELASTIC_HTTP_CRED = '/home/priyanshu/Downloads/ELK/primary-node/config/certs/http_ca.crt'; | ||
| const INDEX_NAME = 'openapi_definition'; | ||
| const QUEUE_NAME = 'index-files-jobs'; | ||
| const ELASTIC_USERNAME = 'elastic'; |
There was a problem hiding this comment.
please dont store usernames and passwords
There was a problem hiding this comment.
they didn't make any difference because these credentials are for local elasticsearch instance and if someone somehow get them in that case they are completely usless. But for production environment I have to rewrite the elasticseach connection driver altogether according to docs.
|
One suggestion, swagger validator seems to be filtering alot, I think it will also filter multi file schemas. |
Successfully finalized the server-side of the OpenAPI web search project. Developed an indexing endpoint, implemented indexing functionality, and incorporated efficient retrieval capabilities for search functionality.