Loading...

All project content is available for reading, but you need to be a member of the project for Subversion checkout of source code, or to create/modify any information.
Login if you are a member. Apply here to request membership (open to all).

Ticket #79 (accepted enhancement)

Opened 9 years ago

Last modified 9 years ago

No support for querying for documents within a particular category

Reported by: andrew.brodie@… Owned by: andrew.brodie@…
Priority: major Component: EasySearch
Keywords: Cc:

Description

At the moment you can't execute a search that only searches within particular categories.

Change History

comment:1 Changed 9 years ago by andrew.brodie@…

  • Status changed from new to accepted

Added new methods in IQuery to search on category fields already. Documentation isn't done yet, so not closing it.

Unfortunately it only works if you are using english (en) language code, because it goes after a field with _en appended.

But, it *does* work :)

If you want to index explicitly specified category information on a document then use:

<property Name="EPi_Categories">

<lucene:field Name="category"

FieldStore="YES"
FieldTermVector="NO"
FieldIndex="TOKENIZED"
/>

</property>

or to add all categories and their ancestors

<property Name="EPi_AllCategories">

<lucene:field Name="category"

FieldStore="YES"
FieldTermVector="NO"
FieldIndex="TOKENIZED"
/>

</property>

The field MUST be called category at the moment.

Again, this will be fixed shortly... but I wanted to get this function in to the main codeline asap.

Note: See HelpUser/Tickets for help on using tickets.