Search in :normal vim command misbehaves

This popped-up while writing a script for vim. Using the well-documented ':normal' command: :normal /abc does not search for the string abc. Instead, the previous search string is still active (i.e highlighted, jumped to with n, etc.). Even stranger: the abc appears as the newest pattern in the / history (i.e. hitting / and then an up-arrow). How come the abc does not take over as the true search pattern?

Search Is it possible to query google cache

Is it possible to query Google's cache with a specific date range. for instance, if i have a url: I want to be able to see what Google's cache had indexed for that page at or around a given date range, is that possible?

Google-Analytics API to track Site Search?

So there's this nifty _trackPageview() api method on a tracker object, but is there a corresponding method that can be used to manually track a search? In other words, _trackPageview() reports to GA that a user hit a page. I want something like _trackSearch("terms") that would report to GA that a user searched for something.

Google map search bar resize in GWT

I have a gwt application that uses the map api for a mapWidget. I added the integrated search for the map with setGoogleBarEnabled(true). It works fine, but the input field is 6px height. How can I resize it? Thanks Balint

Autonomy | IDOL search API

Can someone point me to a tutorial or API resource for Autonomy IDOL search? Thanks.

Query for lucene search result

I have a storage of news with the following fields (Title, Body, NewsDate) I need a best query with the following criteria 1) title is more important but less than date 2) date should be compare to the current date if the date of a document is near the current date it is more valuable (NOTE: It doesn't mean that sorting descending on news date cause there maybe results that their title and its body is more relevant but its older) this is just another factor for searching and i think it needs c

Vim: persistent search buffer between vim instances (in Ubuntu)

I have two separate instances of Vim running. I would like to set up my system so that when I search for something in one Vim (using /, ?, * or #), then press n or N in the other Vim, it searches for the same something in the second Vim. I am running Ubuntu. I already make use of the primary system clipboard for things yanked in vim by using set clipboard=unnamed in my .vimrc file. Research so far The command-line tool "xsel" lets me access three different clipboards in Ubuntu: the primary cli

Twitter api - search too complex?

Any idea why Twitter is throwing this error? GET 403: Sorry, your query is too complex. Please reduce complexity and try again.

dynamic search folder in Outlook professional 2010

I want to create a search folder that will prompt/take user input (I will enter it manually) and search all the emails containing that String. Basically what I am trying to enter is something dynamic and hence I want to pass that string dynamically to the search criteria. is it possible. Cause: I try to search using the instant search but it finds all emails not with the exact sentence but with all the words in the sentence i typed. Please help

Search is not working with filter toolbar in JQGrid

I am facing issue while loaidng the data in JQGrid at a later stage in place of at the time of ceating grid. I am using filter toolbar for search. following is the code I am using: Creating Grid jQuery("#list").jqGrid({ datatype: 'local', colNames: [my col names], colModel: [my col model], jsonReader: { root: "rows", page: "page", total: "total", //records: "records",

Problems with my binary search and linear search

I've tried using both binary search, and while loops and for loops in my searches and the same problem is occurring. When my original program comes to this function call, the linear search function (displayContent) will always assign -1 to position, and after the function call the program breaks and exits. I have tried to rearrange my program. Like I said, I tried for loops and while loops with both binary and linear search. I am also using a structure data type of struct info { strin

Drupal 6 searching for "Authoring information"

I have been looking for a solution to this particular question and I haven't found a way to do it (if there is one). I have content that is stored in a basic page content type. This content type has some authoring information: author and date. If I do a search on 'Author Name' for example, there are no search results. Any way to enable the search to look for these kind of information as well? Thank you.

Search Solr, Special Chars, and Latin to Cyrillic char conversion

I am trying to setup a search engine using Solr (or Lucene) which could have text in both Latin with special chars, (special chars would include Ö or Ç as an example) or Cyrilic chars (examples include Б or б and Ж ж). Anyway, I am trying to find a solution to allow me to search for words with these charicters in them, but for users who do not have the key on their keyboard... Example would be (making up words here, hopefully won't offend anyone): "BÖÖK" would be found when searching for "b

Searching in Liferay document library by document extension

I was developing a module for advanced search over liferay content, and I was stuck in document library search, it was asked to search in documents by document type, and I wish to know the feasibility of such feature, I've check liferay code and found that the document library indexer does not index the document extension instead it indexes the whole file name Kindly help me with this issue

Partial Match Search Takes More time in MarkLogic

When i do partial match search instead of exact term match search, it takes more time than usual. I believe it generates more resultsets and compare with in it for partial search. How do i improve the performance of partial match search? Ex: My Search Term : World Forum If Marklogic Dictionary contains "World Economic Forum" as a term, it has to come as my result.

Search Retrieving Opening balance from Netsuite Chart of Accounts using Web Service

While I try to retrieve Account details from Netsuite using Webservice, Opening balance always returns null. I am using the following code to retrieve account details: AccountSearch accountSearch = new AccountSearch(); AccountSearchBasic accBasic = new AccountSearchBasic(); accountSearch.setBasic(accBasic);; I also tried using port.get(recordRef), port.getList(recordRef[]) and port.getAll(getAllrecord) but got the same there any other way to retrieve the

Searching User In Active Directory By Full Name

I'm looking for the way to search users in Active Directory using VBScript. I can search by username or any Active Directory using ADODB Connection: Set objConnection = CreateObject("ADODB.Connection") Set objCommand = CreateObject("ADODB.Command") objConnection.Provider = ("ADsDSOObject") objConnection.Open "Active Directory Provider" objCommand.ActiveConnection = objConnection objCommand.Properties("SearchScope") = 2 objCommand.CommandText = "SELECT userWorkstations,sAMAccountName,Mail,name,D

Phrase search with slop in Lucene

I am having trouble understanding how this can be a hit. In my index I have: wa wb wc wd And my search term is: "wd wc wb wa"~6 How can the second query be rearranged into the first with only 6 re-arrangements? My initial assumption was that this needed slop 8 minimum to be a hit (move wa 3 positions left, move wd 3 positions right, move wc 1 position right, move wb 1 position left), but I actually get a hit with slop 6 or more. Thank you.

Search Is it possible to use vimgrep for a visual selection of the current file?

I would like to search with vimgrep only within a visual selection of the current file and not the whole file. Is that possible and how? I couldn't find something for this case with Google or in vim help. The reason why I want this is because I need the result in the quicklist (copen) and :g/FOO which is showing the matching lines at the bottom is not doing this job.

Search For loop in ant

My requirement is like , I have below property file:- search.1=111 replace.1=222 search.2=333 replace.2=444 .. upto n no of repeating search/replace. I have to read these properties and replace input xml <foos> <foo> <a></a> <b></b> </foo> </foos> Output should below xml:- <foos> <foo> <a>111</a> <b>222</b> </foo> <foo> <a>333</a> <b>444</b>

Search for a text file within multiple folders

I'm trying to create my first VBS script and I'm lost. I need to be able to search for a specific text within 4 network paths. Basically this is 4 separate LOG files that only hold text files, no sub-directories or anything. I would like if the text was found in whichever network path it would only bring that path up and not allow the rest to come up. The name of the text file should be user input driven. However the code below doesn't work and I'm not sure why.. Is there anyone who could poi

SharePoint managed properties issue when search on separate farm to site collection

We’re having problems with managed properties in a new SharePoint 2013 web application. The managed properties are being used to display metadata and for sorting, however the metadata isn't being displayed and we’re getting the following error whenever we try to sort Property doesn't exist or is used in a manner inconsistent with schema settings. I have seen this error before when the managed property in question weren’t defined, or set to sortable/refinable. However, I can clearly see tha

Search Get reasonable long subsequences in multiple files

I have 3 files, each about 6MB in size, and I need to know what would be the blocks common in those files. With blocks I mean chunks of binary data 128 bytes long. Unfortunately, they might start anywhere. I need to know, where in the files those blocks occur. I've read some text about the Longest Common Sequence Problem but my problem is a bit different as I dont need the longest in 2 files but all reasonable long in 3 files. The blocks have no alignment, so a block of 128 bytes might start any

Set match mode on SphinxQl in sphinxsearch

I use SphinxQl, I got query like this SELECT `id`, WEIGHT() as relevance FROM `rt_table` WHERE MATCH('dubai') I want to set match mode extended to make search by * (wildcard) like SELECT `id`, WEIGHT() as relevance FROM `rt_table` WHERE MATCH('dub*') to get all data which contains "dub" substring. min_word_len = 1 min_prefix_len = 2 and this is part of my config of index . I have tried set min_infix_len=2 but it does not help Problem is that I can not make wildcard search *. Pl

Limit filter by terms elastic search

I would put a size limit per terms, 3 retrieve results for the term "tag", 5 results for the term "dossier" and 1 result for the term "personality". Can i use limit filter or and other solution ? { "_source":{ "include":[ "path", "type" ] }, "query":{ "bool":{ "should":[ { "match":{ "title.acp":{ "query":"car", "boost":10 } } },

SharePoint 2013 Search results Error: Object not set to instance of object for Anonymous Users

I have a very specific error that i cannot resolve. This site was migrated from SP2010 to SP2013, and it had a Local /Search center. the site needs Anonymous users enabled, but after enabling it, the search is not functioning for Anonymous Users, only authenticated users. This is a page with a Search box, for example, which results in a error. In the ULS logs, the error relates to the following method in the stack trace: Microsoft.SharePoint.Publishing.CachedArea.CreateResultSetFromSuperUser

google nearby places search results in "invalid request"

I am using Google's nearbysearch API. Here is my url:,-97.7234120&type=atm&language=en&rankby=distance I'm invoking it in Ruby with curl #{url} No matter what i change, location, type, rankby to radius, I get: INVALID_REQUEST What am I missing?

Sonos Search categories customization for Sonos mobile application (ios/android)

It seems that a have some confusion with the search categories for dekstop vs mobile Sonos clients. Currently our mobile client displays some additional search categories: 'Artists', 'Genres', 'Stations', which are not mentioned around desktop client. And search doesn't work around that mobile client specific categories. Please point me how can I format pmap.xml to make that work? Thanks

ejabberd Search - Module failed to handle the query

I'm using this code to search user in ejabberd: BareJid bareJid = JidCreate.bareFrom(_user_name + "@domain"); UserSearchManager sm = MainService.getUserSearchManager(); DomainBareJid sDomain = sm.getSearchServices().get(0); Form form = sm.getSearchForm(sDomain).createAnswerForm(); form.setAnswer("user",_user_name); ReportedData reportedData = sm.getSearchResults(form, sDomain); but I got this error: <iq from='vjud.mnyr' id='jeRII-100' to='admin@mnyr/rsrc' type='error' xml:lang='en'>

why am i not able to find height of my binary search tree?

This is the code I was trying to solve the problem mentioned in the question: int getHeight(struct node* root) { // Write your code here int ldepth=0; int rdepth=0; if(root==NULL) return 0; else{ ldepth=getHeight(root->left); rdepth=getHeight(root->right); if(ldepth>rdepth) return ldepth+1; else (rdepth>ldepth) return rdepth+1; return 0; } }

Elasticsearch How to apply aggregations on grouped fields in Elasticsearch?

On my eCommerce store I want to only include the first item in each group (grouped by item_id) in the final results. At the same time I don't want to lose my aggregations (little numbers next to attributes that indicate how many items with that attribute are found). Here is a little example: Suppose I make a search for items and only 25 show up. This is the result for the color aggregation that I currently get: black (65) green (32) white (13) And I want it to be: black (14) green (6

XPages sorting of view after fuzzy search

I have a view in my XPage which has "search" property bound to a viewScope variable. Now per our customer's request I have enabled the "fuzzy search" option "true" since they wanted the view to show similar search results (they couldn't find what they were looking for if the search term didn't match exactly to be specific). This created another problem which is if the view has the perfect match or even contains the search variable, it is not listed at the top but rather listed far away below t

What are some Search Servers out there?

I'm looking to find alternatives to Solr from the Apache Software Foundation. For those that don't know, Solr is an enterprise search server. A client application uses a web-services like interface to submit documents for indexing and also to perform search queries. Solr has other features built in like caching and replication. I believe it was originally started by CNet and then open-sourced. I'm looking for other search servers out there that might be seen as the competition.

How does the search command `//` work in Vim?

After searching for something, if you hit //, you seem to get the next result. How is this different from n? How should you use it? What does //e match, and what other options are there for //?

Google Custom Search retrieve all the results, is it possible?

I'm starting to use the Google Custom Search Engine in order to retrieve a temporal use of some selected word in an online newspaper. I see that for example my result provides a total of 22000 retrieved articles. I tried to retrieve pages after the 100 index but I can't get any result. I also tried to search directly on the google web page, but I see that after the 10 page I can't go further, so this only show me the first 1000 result at max. Does it is possible to retrieve every single result o

ArrayFire frame search algorithm crash

I am new to ArrayFire and CUDA development in general, I just started using ArrayFire a couple of days ago after failing miserably using Thrust. I am building an ArrayFire-based algorithm that is supposed to search a single 32x32 pixel frame in a database of a couple hundred thousand 32x32 frames that are stored into device memory. At first I initialize a matrix that has 1024 + 1 pixels as rows (I need an extra one to keep a frame group id) and a predefined number (this case 1000) of frames, ind

Elasticsearch ElasticSearch: Query number field to use like clause as we do for string field

I have 2 fields in my Elasticsearch cache that I created using Oracle river-jdbc. First column is numeric and second is string as name. I want to use this indexing in autocomplete textbox using jQuery. All implementation is done for the name field. User can provide any string (at least 3 characters) then hit goes to Elasticsearch with the given string and searches data as it is "In-String" part of name field and returns the result. Similarly to querying in SQL using the LIKE operator for name

Lightswitch Search screen - choosing what you can search by

I have a search screen which shows results from a 'projects' entity. One of the fields is a link to a 'Clients' entity, which has a client name. I can use the search box above the data to search by project name, date, etc but I cannot search by client name. i guess because it is actually a reference to a seperate entity. How can i make it so that I can search for projects, using the search box, by client name? To try to explain clearer here is the database layout. Project ------ ProjName Pr

I am looking for a way to search for duplicate character strings, a.k.a. words, in a text document faster than manual search and replace.

Example text document: " fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz fly wall buzz ant door scutter " Run: 'THE_ANSWER_TO_MY_QUESTION_HERE' Possible Outputs: 'fly': appears 23 times 'wall': appears 23 times 'buzz' appears 23 times

SilverStripe (3.6.2) Search returning assets folder contents

I haven't enabled Search on SilverStripe before, but it seems pretty easy. I've followed steps from 2 other projects (although they are 3.5 version projects but not sure that makes a difference or not) that have search enabled as well as the tutorial offered on SilverStripe's site, and for some reason, I'm getting asset folder items (i.e. images) in my search results. It only seems to happen if I click to search and nothing has been entered into the search field. There should be no asset items

Search Getting a list of children for a node in Prolog

I'm trying to do a simple tree search in Prolog, and I need a function that would return a list of children for a given node. My code is: root(a). node(a, [b, c]). node(b, []). node(c, [d, e, f]). node(d, []). node(e, []). node(f, []). children(node(_, Kids), Kids). node_matches(_,_). node_matches(Criteria, [Head|Tail]) :- node_matches(Criteria, Head), node_matches(Criteria, Tail). search_node(Criteria, [Node]) :- node_matches(Criteria, Node), search_node(Criteria, children(Node)). Curren

Sitecore Solr Search Exact Match Issue

Index contains fields: Bachelor of Arts Bachelor of Arts (Honours) When search for "Bachelor of Arts" , Bachelor of Arts (Honours) is shown as first record in search result. I want "Bachelor of Arts" to be shown as first record as it is the exact match then Bachelor of Arts (Honors) This is my solr query: ((_latestversion:(True) AND includeinsearchresults_t:(true)) AND ((name_t:("Bachelor Of arts"))^5 OR pagetitle_t:("Bachelor Of arts") OR description_t:("Bachelor Of arts") OR pagecon

  1    2   3   4   5   6  ... 下一页 最后一页 共 24 页