Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Equivalent of charindex SQL Server in MongoDB and sorted field by searched word position.
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
marcandre  
View profile  
 More options Sep 3 2012, 10:57 am
From: marcandre <malegr...@gmail.com>
Date: Mon, 3 Sep 2012 07:57:35 -0700 (PDT)
Local: Mon, Sep 3 2012 10:57 am
Subject: Equivalent of charindex SQL Server in MongoDB and sorted field by searched word position.

Hellow everybody,

I am using MongoDB database with php and I would like to know how can we
sort a list with a field sorted by searched word position in a text ?

But no field sorted by alphabetic order . I give you the SQL code in MS SQL
Server : "select * from my_table order by charindex( <word what I m looking
for> ,my_field_to_sort) ",
I would like what is the equivalent in MongoDB of this SQL code ? Charindex
give us string position in the text field .

Thank you very much .

Best regards .


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.