Is there some step I need to take to get searching to work for record type and for taxonomy terms in Lucene's advanced search? The menu of vocabularies and their tags gets created and a set of checkboxes appears for content type. These seem to be ignored in doing a search.

Comments

cpliakas’s picture

Component: User interface » Code
Category: support » bug

Hi. Thanks for the report. I cannot replicate, but that doesn't mean there isn't an issue. If you reindex the site, does the problem persist? Also, can you give me some information as to the setup of your site? For example, is it a fresh in stall, does it have a lot of other modules? Also, what is the URL when you submit a search with facets?

Thanks,
Chris

slnm’s picture

Title: Lucene advanced search ignores ignores taxonomy terms and content type in searches » Lucene advanced search ignores taxonomy terms and content type in searches

Chris,

Thanks for the response.

I've removed all the records (500 of them in my test set), I recursively removed the sites/default/files/luceneapi_node directory, reloaded the nodes, ran cron a bunch of times and the problem persists.

I have Drupal 6.13.

The nodes I'm indexing with Lucene have been extended with CCK.

I've got a custom module that alters the search form but the problem exists whether or not the module is active.

Aside from Lucene, CCK and Core, I've got Devel and FCKeditor.

My search URLs look like http://{mysite}/search/luceneapi_node/{search_term}. The URLs don't indicate any taxonomy terms.

I very much appreciate your help.

slnm’s picture

I'm going out of town for a week but I will engage with you on this issue when I return.

cpliakas’s picture

Sounds good, and thanks for all the info.

When you search for a keyword and select some facet, the facet information is supposed to be transported through the query string. For example, searching for the keyword "test" in the "page" content type will look similar to the following:

http://{mysite}/search/luceneapi_node/test?type[page]=page&type[story]=0

From the information you gave, it looks like the information isn't being added to the query string. Therefore Search Lucene API doesn't think that any facets are being selected. On the API level, the information gets appended in the luceneapi_search_form_validate() and luceneapi_search_form_submit() functions in the luceneapi.module file . My guess is that something is either not going right in there, or a submit handler is running after luceneapi_search_form_submit() and wiping out the redirect set in that submit handler.

slnm’s picture

Thank you for that information. When I return from my travel I will look to see if I can find another submit handler is wiping out the redirect.

cpliakas’s picture

Sounds good. Have a good trip!

cpliakas’s picture

Status: Active » Closed (fixed)

Closed after weeks of inactivity.

fm’s picture

Status: Active » Closed (fixed)

I am experiencing this same problem with Search Lucene API 6.x-2.4.

Mine is not a new install. And I have scads of other modules. I am trying to limit the search to one content-type and the search is both ignoring that and never showing anything in the faceted taxonomy terms.

I do not know if my server is NFS; I've submitted a issue ticket to my hosting service asking for confirmation that the server is not NFS.

Update: My host is not using NFS on this server. Yea!

fm’s picture

Version: 6.x-1.4 » 6.x-2.4
Status: Closed (fixed) » Active

drat. Missed a setting. see previous post.

cpliakas’s picture

Status: Closed (fixed) » Closed (won't fix)

Due to end of life announcement.