TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Denish kanabar
NA
15
662
MongoDB TextSearch (index)
Jul 26 2019 4:13 AM
Hi,
In Textindex (with weights) can I have mix data type columns i.e. string and int both?
I have a need to building a query that returns a result based on user input(user gives value for sting filed) but needs to modify score or sort result in a such a way that has higher values in corresponding fields.
E.g. user searches code repositories with projectName and technology ("UI AngularJs") , I have index weight on fields "projectName" and "technology". There are few other fields like #noOfContributers, #noOfDownloads,etc..
I need a query that gives record which has more #noOfContributers & #noOfDownloads.
TextIndex is not allowing to have columns with string and int datatype.
Is it possible to do with MongoDB Text Index and score feature?
Thanks,
Denish Kanabar
Reply
Answers (
1
)
How to migrate data from sql server to kibana?
How post data python app to mongodb?