Fórumok
lucene search
francesco scamarcio, módosítva 12 év-val korábban
lucene search
Regular Member Bejegyzések: 104 Csatlakozás dátuma: 2009.08.17. Legújabb bejegyzések
I am implementing a class to do a search with lucene. I have to search content by tag, but if the label is formed by more than one word, the query did not seek anything.
Example if i have to search a content that has a tags like 'more result'
BooleanQuery.addTerm("assetTags","more result") returns assetTag:more assetTags:result)
how can i do to search the whole word?
Example if i have to search a content that has a tags like 'more result'
BooleanQuery.addTerm("assetTags","more result") returns assetTag:more assetTags:result)
how can i do to search the whole word?
David H Nebinger, módosítva 12 év-val korábban
RE: lucene search
Liferay Legend Bejegyzések: 14919 Csatlakozás dátuma: 2006.09.02. Legújabb bejegyzések
Hitoshi Ozawa, módosítva 12 év-val korábban
RE: lucene search
Liferay Legend Bejegyzések: 7942 Csatlakozás dátuma: 2010.03.24. Legújabb bejegyzések
Check the following page:
http://lucene.apache.org/core/old_versioned_docs/versions/3_0_1/api/all/org/apache/lucene/queryParser/QueryParser.html
Lucene's default QueryParser.Operator is OR, you'll have to add code to specify it to AND
Before parsing in portal-impl\src\com\liferay\portlet\search\lucene\LuceneHelperImpl.java
http://lucene.apache.org/core/old_versioned_docs/versions/3_0_1/api/all/org/apache/lucene/queryParser/QueryParser.html
Lucene's default QueryParser.Operator is OR, you'll have to add code to specify it to AND
Before parsing in portal-impl\src\com\liferay\portlet\search\lucene\LuceneHelperImpl.java