Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I'm working with Drupal-7; where i have installed so many different modules in it. one of them modules is "Search API".
The problem what i'm facing is Result of searched keyword. whenever i use to search for a particular keyword it working for the Exact match with that key word.
For example : keyword = "Drupal" ;
then result only retrieved if this exact word will match with the content of database. but i would like to get result which are having any of these characters.
For example : keyword = "Dru" ;
then also all the result will retrieved which is having only word "Dru" as well as "Drupal" & etc..
In short now Query is working with "=" operator but i would like to make it with "LIKE" operator.
What should i do in which page to get resolve this..?
I have tried to many things but not get success..Please help me out.
Drupal core does not allow partial search string search. Below are your options if you want partial string search in your results.
1) Use Apache solr server.
2) http://drupal.org/project/porterstemmer is another one
3) use google custom site search instead . http://drupal.org/project/google_cse
Hope this helps.
Cheers,
Vishal
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to migrate the data which already exists in my firebase database: Add a new field to all children; manipulate an existing field (ie a -> a + 3).
Since there is no real frontend available to do that, I wonder how it could be done?
If there is no real front end then:
If the database is small and you are using the RTD then download the JSON and edit it
If the database is large since you have no front end you should do it with Functions
How to do it with Functions
You have to create a Functions project that will have an HTTP request trigger, once you access that url, then the trigger will query the data and for each result will create new data.
For doing this the simplest way to start is following this video. You have to do the same but instead of returning something to the browser with send, just end the Function with a code 200 (if it worked).
I would recommend creating an extra node for verification something like migration_march: false and then set it to true once the migration is completed. That way you can avoid unintentional re-migrations. There should be a validation for this once the trigger is started.
Doing a query on Functions is fairly the same as doing it in any other SDK this is the Functions docs.
You will probably need to know how to work with promises since your algorithm is gonna be: a query where for each value found set a new value in another place and then move forward to the new value, here is an illustrative video (couldn't find the original video)
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I know I can open a web page from R using "shell.exec".
But I want to write a loop that opens the webpage only if the webpage
maintains a condition, for a collection of websites.
It's a collection of websites that have "value=somenumber" in their address,
and I want R to open only those that "somenumber" actually have some data.
Numbers that don't have data don't return an error page, but just a page with no data.
The thing is, it's involving like html elements that I need to write in the condition...
is such thing possible?
I would use the stringr library's str_detect
http://cran.r-project.org/web/packages/stringr/stringr.pdf#page.7
Assuming you have a list of the urls. I would just pass that list to the function and if it returns true then do your thing.
str_detect(urlList,"value=[:digit:]")
Here's an approach that uses the more portable browseURL and grep:
x <- readLines(n=3)
http://stackoverflow.com/questions/23840523/check-if-os-is-solaris
http://stackoverflow.com/questions/23817341/faster-i-j-matrix-cell-fill
http://stackoverflow.com/questions/7863710/correlating-word-proximity
sapply(grep("/238", x, value=TRUE), browseURL)
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I'm try using phpLDAPadmin to connect openldap server, but when I try to create new user account with Generic: User Account, I get the error :
"Template Value Error
This template uses a selection list for attribute [gidNumber], however the selection list is empty.
You may need to create some dependancy entries in your LDAP server so that this attribute renders with values. Alternatively, you may be able to define the appropriate selection values in the template file."
I'm quite newbie with ldap and I had tried to search error related with gidNumber but don't have result, I don't know how to solve it. However, I can using software LdapAdmin to connect server and add new uid acc, and I using Ubuntu Server 13.04 to install ldap server. Hope someone can help me out with it.
Thanks.
You probably just want to create an end user account by selecting the 'Default' option and selecting the inetOrgPerson object class and click the "Proceed" button. On the next screen, you can complete the attribute template to create your entry.
If you really do want a Posix account, first create a Generic: Posix group. After the group is created, the Group ID field will be populated in the Generic User template.
try to make o (organization), ou (organization unit), g (group) then try to make some user.. GID is Group ID, so when GID is empty the template value is error :)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
Can you please direct me to a tutorial or other resource for accomplishing the following:
Index page lists 50 states. Onlick of a state Y, the report page (report.aspx) will display info related to state Y, pulled from database.mdb, interspersed in HTML text.
I am not even sure what the terms and controls I need to be working with.
Thank you.
UncleJune
Do you know how to create the report? That is the first step. After that it is just a matter of passing the required parameter from one page to the next. Several methods can be used to do this: Response.Redirect/Request.QueryString, session variable, etc.
This tutorial might help you:
Using the ASP.NET 2.0 ReportViewer in Local Mode
Dynamic reports with Microsoft local report engine
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
Let say that I have a website with some information that could be access externally. Those information need to be only change by the respected client. Example: Google Analytic or WordPress API key. How can I create a system that work like that (no matter the programming language)?
A number of smart people are working on a standard, and it's called OAuth. It already has a number of sample implementations, so it's pretty easy to get started.
Simple:
Generate a key for each user
Deny access for each request without this key
Currently, I use a concatenation of multiple MD5s with a salt. The MD5s are generated off of various concatenations of user data.
A good way of generating a key would be to store a GUID (Globally Unique Identifier) on each user record n the database. GUID is going to be unique and almost impossible to guess.
There are also infrastructure services that manage all this for you like http://www.3scale.net (disclosure I work there), http://www.mashery.com and http://www.apigee.com/.