search

Customized Tridion Search Index Handler: Custom vs Standard field for page url?

拜拜、爱过 提交于 2020-01-03 09:44:52
问题 I was playing around with custom Search Indexing Handlers for SDL Tridion 2011 (GA). I got something working, using the very helpful information provided by Arjen, however I am not sure if my execution is the best option. The requirement is to be able to search for pages in the CMS by url (eg www.example.com/news/index.html). In order to do this I have the created a class using the ISearchIndexingHandler interface (code below). I am indexing the url in the ContentText field of the item,

how to query an element from a list in pymongo

独自空忆成欢 提交于 2020-01-03 08:58:47
问题 pymongo throws me an error when trying to query and element from tags db.users.find({"pseudo":"alucaard"}).distinct("produit_up") Out[1]: [{u'abus': 0, u'avctype': u'image/jpeg', u'date': u'2012-09-15', u'description': u'le fameux portable solide', u'id': u'alucaard134766932677', u'namep': u'nokia 3310', u'nombre': 1, u'orientation': u'portrait', u'photo': ObjectId('5053cd4e3a5f3a0990da8a61'), u'prix': 1000, u'tags': [u'solide', u'le', u'fameux', u'portable'], u'vendu': False}] list(db.users

Automatically expand all in Eclipse Search results

懵懂的女人 提交于 2020-01-03 07:19:58
问题 I usually want to have all the search results (from ctrl-H ) fully expanded, but only the first leaf node is expanded by default. What I end up doing is clicking the "Expand All" button in the Search view but this is tedious. Is there a way to automatically have results fully expanded? 回答1: No but you can use the keyboard shortcuts of your OS. On Linux, use Nk* ( * on the numpad) to expand the current node and all children. Windows user can use Shift+Nk* On the Mac, select all nodes with

Yii2 search with empty param throws all records

荒凉一梦 提交于 2020-01-03 05:34:10
问题 There are 3 search fields in view2.php, search is working properly when i enter something into search field and hit search button. But the problem is when I hit search/Enter button without entering anything into search fields, it displays all the entries related to that model from DB. Below is my Machine model: public function search($params) { $query = Supplier::find(); $query->joinWith(['user', 'cities', 'industrialareas','supplierMachines', 'subCategory', 'types0','supplierCertificates' ])

Find value on any sheet in spreadsheets using Google Script

不羁的心 提交于 2020-01-03 04:49:05
问题 Using the code below I'm able to look through multiple sheets in a spreadsheet to find the first value that equals the selected cell. The only problem with this bit is: The cell with the value found is highlighted yellow, but the cell with the value found isn't selected. See code below for hopping through sheets. I can't get my head around this :) Funny thing is that the code for highlighting and selecting a value does work when I'm not hopping through the list of sheets, see the best answer:

Partial search on Encrypted field

冷暖自知 提交于 2020-01-03 04:47:08
问题 Recently I am assigned with a problem, encrypting the database field such as SSN but still have to keep the "partial searching" working on it. E.g: SSN 123-45-6789 is encrypted to abcdxyz in the database. When user enters "2345" to the search box then it has to come up in the result. We have millions records in the database. We are using SQL server 2008 R2. I has been googling around but still not see any good solution yet. Is there any good solution for this ? Thanks for help. 回答1: No, there

Search based on list item class

瘦欲@ 提交于 2020-01-03 04:35:09
问题 I'm not too familiar with anything beyond writing markup and CSS, and I have a question.. If I have one .html page with a structure like this: <ul> <li></li> <li></li> <li></li> </ul> Now let's assume each of these list items has a class assigned to it, but the class is not unique, and is used multiple times. Is it possible to fetch all list items based on a certain class to another .html page? For example, summon all list items with class "red" to a page called red.html, and all items with

Formula to search table and return multiple column headers

回眸只為那壹抹淺笑 提交于 2020-01-03 04:15:09
问题 I am trying to enter a certain value in a cell, search a table for that value (vertically and horizontally), then return the column header of the columns containing that value. My formula works, but it will only return 1 column header, and I need it to return multiple Formula: {=INDEX(Sheet2!A1:J31,,MAX(IF(Sheet2!A1:J31=B2,COLUMN(Sheet2!A1:J1)-COLUMN(Sheet2!A1)+1)))} 回答1: I'm not aware of a built in Excel formula that will do this, but this can be accomplished with a user-defined function.

How to search ClearCase repositories

我怕爱的太早我们不能终老 提交于 2020-01-03 03:40:12
问题 I just switched to use ClearCase and want to know if it has any build-in tool or plugin to do across VOBs search. I previously used Opengrok to index the Subversion and Git repositories by checking the head out nightly and I think I can do the same for Clearcase. But before that, I want to know if there is any existing ClearCase capability for so. I definitely can leverage the file system (i.e. Windows File Explorer) but it is not efficient enough for developers. Or suggestions on any other

Twitter api searching tweets for hashtags

﹥>﹥吖頭↗ 提交于 2020-01-03 03:34:29
问题 I am new to twitter api and I have spend tremendous amount of time trying to figure this out. I would like to extract a large number (100k - 1m) of tweets for a given search term from most recent tweets. I tried working with tweepy and I was able to setup a stream but I need the data from past as well. I also tried following code but it only gives me 100 at a time and I don't understand how to use since_id and max_id to run through past tweets. Also if someone knows how to extract hashtags