I have a problem with the Search API on Drupal 8.7.14; the site is in Hebrew.
When I try to search for more than one word, I get no results. If I search for only one word, all results that contain that word appear. The search view is already configured with a full search filter criterion.
Do you have any ideas?
https://www.screencast.com/t/Pv6jC1X6n
(8.x-1.8 search API version)
I guess you're using the wrong operator for this filter, use "contains any of these words", like on screenshot https://i.stack.imgur.com/6nB1k.png
Related
I have the Search plugin enabled - all good. ie not the DocSearch plugin.
I am wondering whether there is an option to keep the search results until a new search is performed, or the last search string is removed?
eg search for "dog" could list multiple page results, I click the first one but decide it isn't what I want. To see the next result I need to enter "dog" again.
If I need to implement that myself, any suggestions for an approach?
I am completely new to VuePress.
Thanks,
Murray
I’m trying to get a proper search done by the IT department. I have been told that they use condition card builder and Kusto query language.
I need to search for “wordA” near 5 words of “wordB” (either before or after)
They say they can’t do it, but I can in other programs.
I was told that ‘around’ means ‘and’
That there was no ‘near’command
‘W/5’ wasn’t a search command
Is there a command to do my search? I have other issues with the database administrator, such as I gave a list of people who the emails should be from and the results were not from the individuals, but they were CC in the message.
The query
(wordA NEAR(5) wordB)(senderauthor=fromemailaddress)
can be copied and pasted into the keyword section of the condition card builder.
Connect, build and run the search in PowerShell:
connect-ippssession
new-compliancesearch -name "Near Search" -description "search using NEAR" -exchangelocation mailbox#domain.com -contentmatchquery '(wordA NEAR(5) wordB)(senderauthor=fromemailaddress)'
start-compliancesearch "NEAR Search"
mailbox#domain.com is the mailbox to search - it can also be a distribution list (which will search all member mailboxes).
I have integrated Solr search with my ektron site. And for search functionality I used Search framework API.
I am getting the search results as well. Now I want my search result to display in some particluar order. ie. the result item with target url that contains the search text should come first, followed by some other contents and so on.
I came to know that by modifiying the query text that passing to the Solr can return the desired result.
eg : title:testkeyword
But I can't do the same with target url and and cant boost up items.
Do any know how to modify the query text to get the desired result.
Use dismax and edismax to get better results ,
http://wiki.solarium-project.org/index.php/V3:EDisMax_component
http://wiki.solarium-project.org/index.php/V2:DisMax_component
I have found a similar question earlier here:
Google Analytics Visitors Flow: grouping URLs?
However I'm confused because people suggest different way to write the Replace String, and either way I try it am not able to make it work.
So I have a ecommerce site with hundreds of different pages. The different parts of the website is:
http://example.com/sv/ (Root)
http://example.com/sv/category/1-name/
http://example.com/sv/product/1-name/
http://example.com/sv/designer-tool/1-name/
http://example.com/sv/checkout/
When I go to the visitors flow. I want to see the amount of people that go from example Root to Category, and from Category to Product, and from Product to Designer Tool, and from Designer Tool to Checkout. However now when I have so many different pages it becomes very difficult to follow the visitors flow, because the product pages are for example not grouped together.
So instead of above. I would like to remove the 1-name/ part in the end. And only see /sv/category/, /sv/product/, /sv/designer-tool/.
In the earlier post I understand you can use an advanced filter to do this. I have set the following settings:
Type: Search & Replace
Field: Request URI
Search String: ^/(category|product|designer-tool)(/\d*)(.*)
Replace String: /$A1$A3
I guess that my search string and my replace string is wrong. Any ideas?
EDIT: I updated my filter to the following:
Search String: ^/sv/(category|product|designer-tool)(/\d*)(.*)$
Replace String: /sv/\1/
Still testing and unsure if it's the correct way to set it up.
I was able to solve this by the Search String and the Replace String in my edit above.
So basically what I did was:
Create a secondary view/profile for your site. If you apply your filter to your one and only view/profile that means that you won't be able to see any detailed data about specific pages, because the filter removes/filter that.
Add an Advanced Filter with the following settings:
Type: Search & Replace
Field: Request URI
Search String: ^/sv/(category|product|designer-tool)(/\d*)(.*)$
Replace String: /sv/\1/
You need to wait 24h after creating your new profile/view before you can see any data in it.
So my confusion was regarding the Search and Replace String. The Search String is an regular expression for matching everything after your .tld. So for example http://www.example.com/sv/mypage/1-post/, the Search String will only search within /sv/mypage/1-post/.
The Replace String is what it should replace the whole Search String with. So in my case, I matched all URL's that had /sv/category/1-string/. I wanted only to keep the "category" part, so I replaced the whole string with /sv/category/ by inputting Replace String /sv/\1/
/sv/ means just what it says. \1 means that it should take the value of the first () of my Search String (In this case "category"). The ending / is just an ending slash.
All in all, it means that any URLs that looked like http://example.com/sv/category/1-string/ was changed to http://example.com/sv/category/. Meaning that I can now see data for all my categories as a group, instead of individual pages.
Is there a way in xCode4 to search for all variables with a specific name and not just trying to match part of the name over all code ?
I need perfect match, for example, I have a variable called "myVar", and when I search for it, I don't want results with longer names including "myVar", such as "myVar2" or "allmyVars".
thanks
Of course there is a way. Just bring up the advanced options on search navigator (click on the magnifying glass > Show Find Options) and choose match search term