Skip to content

Full text search is not working #4600

@khalilsarabey

Description

@khalilsarabey

We use GitHub Issues for bugs.

Issue Description

I'm running the latest version of Parse, and I'm trying to use the full text search feature, but whenever I try to implement it, I get "query.fullText is not a function", I tried that in cloud code and the javascript library from npmcdn, after searching the actual js file on npmcdn, the fullText function is not defined there, I don't know if there's anything that I need to do before getting this to work, but in the documentation nothing is mentioned about any additional steps that needs to be taken.

Steps to reproduce

  • Install the latest Parse server
  • Try to create this in cloud code or a Javascript in the browser:
    var gameScore = new Parse.Query("Game"); gameScore.fullText('name', 'madrid'); gameScore.find(null, { useMasterKey: true, success:function(results) { console.log(results); } })

Expected Results

Search results

Actual Outcome

Error generating response. TypeError: gameScore.fullText is not a function

Environment Setup

  • Server

    • parse-server version: 2.7.2
    • Operating System: macOS
    • Localhost
  • Database

    • MongoDB version: 3.6.0
    • Localhost or remote server? (AWS, mLab, ObjectRocket, Digital Ocean, etc): [FILL THIS OUT]

Logs/Trace

Error generating response. TypeError: gameScore.fullText is not a function
at /Users/khalilsarabey/parse/cloud/index.js:12:21
at /Users/khalilsarabey/parse/node_modules/parse-server/lib/Routers/FunctionsRouter.js:176:9
at new Promise ()
at handleCloudFunction (/Users/khalilsarabey/parse/node_modules/parse-server/lib/Routers/FunctionsRouter.js:144:14)
at /Users/khalilsarabey/parse/node_modules/parse-server/lib/PromiseRouter.js:169:7
at Layer.handle [as handle_request] (/Users/khalilsarabey/parse/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
at next (/Users/khalilsarabey/parse/node_modules/parse-server/node_modules/express/lib/router/route.js:137:13)
at Route.dispatch (/Users/khalilsarabey/parse/node_modules/parse-server/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (/Users/khalilsarabey/parse/node_modules/parse-server/node_modules/express/lib/router/layer.js:95:5)
at /Users/khalilsarabey/parse/node_modules/parse-server/node_modules/express/lib/router/index.js:281:22

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions