Click here to Skip to main content
15,885,032 members
Home / Discussions / C#
   

C#

 
GeneralRe: Chemical Equation Balance Pin
stephen.darling21-Jul-11 2:51
stephen.darling21-Jul-11 2:51 
AnswerRe: Chemical Equation Balance Pin
Ennis Ray Lynch, Jr.21-Jul-11 3:45
Ennis Ray Lynch, Jr.21-Jul-11 3:45 
QuestionO'Reilly Confused me on classes Pin
Herboren20-Jul-11 6:47
Herboren20-Jul-11 6:47 
AnswerRe: O'Reilly Confused me on classes Pin
PIEBALDconsult20-Jul-11 7:04
mvePIEBALDconsult20-Jul-11 7:04 
AnswerRe: O'Reilly Confused me on classes PinPopular
Richard MacCutchan20-Jul-11 7:05
mveRichard MacCutchan20-Jul-11 7:05 
GeneralRe: O'Reilly Confused me on classes Pin
Herboren20-Jul-11 7:07
Herboren20-Jul-11 7:07 
GeneralRe: O'Reilly Confused me on classes Pin
Richard MacCutchan20-Jul-11 7:34
mveRichard MacCutchan20-Jul-11 7:34 
QuestionLucene.Net: using NOT operator Pin
NarVish20-Jul-11 4:11
NarVish20-Jul-11 4:11 
Hi,
Don't know whether it is right place to post this. If not, please suggest me the right forum.
I indexed the document using Lucene Indexer.
Each document contains the values for the Level, Parent, Description.

I would like to search the documents based on below conditions,
where Description contains "Ana", Level=0 and Parent not equal to "Move". I wrote the below code to satisfy those conditions

TermQuery qry = new TermQuery(new Term("Level", "0"));
WildcardQuery wQry = new WildcardQuery(new Term("Description", "*Ana*"));
QueryParser parser = new QueryParser(Lucene.Net.Util.Version.LUCENE_29, "Entity",
                    new StandardAnalyzer(Lucene.Net.Util.Version.LUCENE_29));
Query qry1 = parser.Parse("Parent:NOT Move");

BooleanQuery boolQuery = (BooleanQuery)boolQuery.Combine(new Query[] { qry, wQry, qry1 }); 
boolQuery.Add(query, BooleanClause.Occur.MUST);
boolQuery.Add(wQry, BooleanClause.Occur.MUST);
boolQuery.Add(query3, BooleanClause.Occur.MUST);
hits = searcher.Search(boolQuery, 100);


qry and wQry are working but qry1 is not working. How to query Parent not equal to "Move".
Thanks in advance.
AnswerRe: Lucene.Net: using NOT operator Pin
Dave Kreskowiak20-Jul-11 7:14
mveDave Kreskowiak20-Jul-11 7:14 
AnswerRe: Lucene.Net: using NOT operator Pin
dmoses4820-Jul-11 9:22
dmoses4820-Jul-11 9:22 
GeneralRe: Lucene.Net: using NOT operator Pin
NarVish20-Jul-11 20:03
NarVish20-Jul-11 20:03 
QuestionLINQ JOIN Pin
PozzaVecia20-Jul-11 2:58
PozzaVecia20-Jul-11 2:58 
AnswerRe: LINQ JOIN Pin
Mirko198020-Jul-11 3:38
Mirko198020-Jul-11 3:38 
GeneralRe: LINQ JOIN Pin
PozzaVecia20-Jul-11 5:21
PozzaVecia20-Jul-11 5:21 
GeneralRe: LINQ JOIN Pin
Pete O'Hanlon20-Jul-11 5:22
mvePete O'Hanlon20-Jul-11 5:22 
GeneralRe: LINQ JOIN Pin
PozzaVecia20-Jul-11 5:27
PozzaVecia20-Jul-11 5:27 
GeneralRe: LINQ JOIN Pin
Pete O'Hanlon20-Jul-11 5:42
mvePete O'Hanlon20-Jul-11 5:42 
QuestionHow to Get Number of Combinations of Polygon Pin
Anubhava Dimri20-Jul-11 0:00
Anubhava Dimri20-Jul-11 0:00 
AnswerRe: How to Get Number of Combinations of Polygon Pin
V.20-Jul-11 1:55
professionalV.20-Jul-11 1:55 
QuestionDateTime Data Problems in Silverlight and C# Pin
Xarzu19-Jul-11 16:41
Xarzu19-Jul-11 16:41 
QuestionInstalling Visual Web Developer 2010 Express Pin
Bram van Kampen19-Jul-11 15:51
Bram van Kampen19-Jul-11 15:51 
AnswerRe: Installing Visual Web Developer 2010 Express Pin
RobCroll20-Jul-11 1:28
RobCroll20-Jul-11 1:28 
QuestionDrawing Map & find countries on Map by C# Application Pin
Mahtab77719-Jul-11 7:00
Mahtab77719-Jul-11 7:00 
AnswerRe: Drawing Map & find countries on Map by C# Application Pin
Eddy Vluggen19-Jul-11 9:43
professionalEddy Vluggen19-Jul-11 9:43 
GeneralRe: Drawing Map & find countries on Map by C# Application Pin
Mahtab77719-Jul-11 17:05
Mahtab77719-Jul-11 17:05 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.