Hello there so I was not expecting to get any document. As show in the code above, I'm searching academy custom type if it has the query that I pass on to it.
That's the code with the query I pass to the function, let's say I seaech for 'getting started' then it will return documents with that custom type of getting started.
But now the problem is when I search for "to" and "for" it resturns every document from the repo and not the custom type.
Live demo is here CoinProfit Academy
Use the website like a normal user and search for the title of the document there and then search for to or for to see what I'm talking about.
The query will return all the documents of the type academy that contain the words 'for' or 'to' in the field named article_title. The fulltext search only works with full word matches.
What's the URL of your repository? We would like to run a test on our end.
Hey, @chaderenyore480 the team confirms that this is the intended behavior of the fulltext search. for is a preposition and all prepositions are ignored.
This is why you are seeing all the documents at once.
What do you mean preposition and why are they ignored?
Can you please elaborate? I mean should a user mistankenly search for that on my site it breaks my UI. Please elaborate I don't understand