Searching information on pages created by views in Drupal 7 - drupal-7

I'm using Drupal Commerce and creating pages with those products through views.
I would like to be able to search for any of the products and any of their descriptions and have the search results link to those views pages.
I'm currently exploring Search by Page and it's kind of working but it only searches on the page title and doesn't search substrings. I'm downloading and trying everything! Maybe i just need the right combo.
Has anyone dealt with this?
Thanks!

You can use the option "Search: search terms" from filter settings. For this option you have to enable core Search module.
Its searches from Title, Description also we can set "contains" criteria to search any matched data.
Cheers!!!

Related

Use Categories/Tags from one 2sxc app across the site for all apps using the DNN Taxonomy terms list?

Looking to use the DNN Taxonomy either by using 2sxc's Folksonomy on its own or if there was a way to join the two tag tables and sync tags across site. For example the 2sxc Blog app has Categories and Tags, the 2sxc News app has Categories but no tags (out of the box), is it possible to use the same Categories list for both apps where the list is actually the tag terms set in the Vocabulary terms db table?
Is this use case something that can be achieved using the visual query designer?
I'm looking to use the 2sxc Blog, 2sxc News apps and create a similar Document management app where all apps use same Categories list (list set by us and will not change) and Tags which admins can add remove similar to Blog app which would be a hierarchical tree list in the Vocabulary terms table.
UPDATE:
Trying to achieve something similar to what WatchersNET has in their TagCloud module (https://github.com/w8tcha/WatchersNET.TagCloud) where you can select a DNN Vocabulary or use a custom tag which is a great feature to incorporate DNN's built in Vocabulary, see below
Yes, this can be done, and isn't implemented ATM.
I'm not sure if the DNN Taxonomy would be the ideal place to start - but if you're already using it it could easily work.
Yes, visual query would be a simple place to start - with a Dnn-Sql Data source.
Another alternative is to create a custom WebApi. ATM there is no dropdown-from-webapi yet, but if you need it, I'm sure we could add this in no time :).

Django-Haystack with Solr: Searching by page description meta tags

I've been digging around and can't seem to find a way to create a search index for the page description meta tags using Haystack and Solr. Does anyone have experience with this, or any tips?
I have looked at the page model in cms, but can't figure out how to pull the meta tag information for use in the search index.
I am hoping to include this information so that when users search on the site, they will find relevant pages based on what they entered. I thought maybe it would be built in, but so far no luck locating that. Any help would be much appreciated.
Found the solution. Turns out the information I was looking for is in the Title model, NOT the page model. The Title model allows you to access all the page title, meta tags, menu titles, etc. So I just created a search index based off of that model and it works like a charm!
See here for the Title model:
CMS Github

How to search through uploaded documents, Asp.net mvc?

I am making a website where users can upload documents and search also a search functionality to find documents. My question is, how do i add a search functionality that searches not only the title of the document but also the document itself.
Ex.
Title: Reaction to The Perl
Text: {Whole Document}
If we search for 'Kino' (Which is appears in {Whole Document}), this document should show up as a result to the search.
Edit:
Currently I have them uploaded to a folder on the system and the database just contains a title and a link to the file. I have not implemented the search functionality yet.
Also I am using asp.net mvc, and sql server, if that matters.
You could use Lucene.Net to implement the search functionality (available for download from NuGet). You just need to add the documents and fields to a search index and then execute the search through the API.
I find this tutorial for Lucene.Net a useful example.

Best way to implement custom search form

Firstly, I am a Drupal newbie and am still alien to many of Drupal's core concepts. My questions probably seem lame but .... I am trying my best.
I want to implement a custom search form like in the picture attached.
Hotel, flight, etc. are taxonomy terms.
Depending on the taxonomy term selected, the parameters below will also change, like in the picture below:
I came across Drupal Search API. I saw the Munich DrupalCon screencast on search api.
http://www.youtube.com/watch?v=rArRwp_1h8Q
From what I have seen so far, I am not sure whether this can be implemented using Search API.
I know this can be implemted using Forms API (I will create the form manually).
I want to know which way will be faster, Forms API or Search API.
I am using : Drupal 7.26
A simple way is to build a regular view with exposed filters.
To add and configure a views exposed filter:
Go to your views edit page.
Create the filter criteria that we want our users to be able to control, by clicking the "Add" button, in the filter criteria box.
Choose the fields that you want your users to be able to filter through them and click "Add".
In Configure filter criterion, check the option Expose this filter to visitors, to allow them to change it.
Configure the rest of the settings to your liking and click "Next".
After saving the view, this filter should be exposed to your users and they are able to search your view.
For a demo with screenshots; Check this tutorial.

Apache Nutch Crawl Dynamic Products

Currently we are using Apache Solr as Search Engine and Apache Nutch as Crawler. Now we have created a site site which contains products which gets generated dynamically.
As current setup will search the content within content field, so whenever we are searching for dynamic Product, then its not coming in search results.
Can you please guide me how to crawl and index Dynamic Product on a Page to Apache Solr? Can we do this using Sitemap.xml, If yes then please suggest how?
Thanks!
One possible solution is this:
Step 1) Put the description of each dynamic product in its own page. e.g http://domain/product?id=xxx (or with more friendly url such as http://domain/product-x).
Step 2) You need a page or several pages that list urls of these products. The sitemap.xml you mentioned is one choice but a simple html page is also suffice. So, for instance, you can dynamically generate a page named products_list which contains entries like this: Product x.
Step 3) You should either add url of products_list page to your nutch seed file or include a link to it in one of already crawling pages.

Resources